From 2fad8b9c72b6588a24cd961372a3106293472fa5 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Fri, 7 Feb 2020 10:53:36 +0000 Subject: [PATCH] updated perl_cpanm_install_if_absent.sh --- perl_cpanm_install_if_absent.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/perl_cpanm_install_if_absent.sh b/perl_cpanm_install_if_absent.sh index 626681c2..88faf593 100755 --- a/perl_cpanm_install_if_absent.sh +++ b/perl_cpanm_install_if_absent.sh @@ -52,6 +52,13 @@ process_args(){ done } +if [ -n "${*:-}" ]; then + process_args "$@" +else + # shellcheck disable=SC2046 + process_args $(cat) +fi + if [ -z "$cpan_modules" ]; then usage fi