Skip to content

Commit

Permalink
updated perl_cpanm_install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Jan 30, 2024
1 parent 4b4e914 commit 90c437c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions perl/perl_cpanm_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,15 @@ if [ -n "${NO_FAIL:-}" ]; then
echo "$sudo $envopts $CPANM --notest $opts $cpan_module"
# want splitting of opts
# shellcheck disable=SC2086
$sudo $envopts "$CPANM" --notest $opts "$cpan_module" || :
# 'env' prevent a command not found error if sudo isn't used from the space OPENSSL_INCLUDE="$brew_prefix/opt/openssl/include" prefix
env $sudo $envopts "$CPANM" --notest $opts "$cpan_module" || :
done
else
echo "$sudo $envopts $CPANM --notest $opts $cpan_modules"
# want splitting of opts and modules
# shellcheck disable=SC2086
if ! $sudo $envopts "$CPANM" --notest $opts $cpan_modules; then
# 'env' prevent a command not found error if sudo isn't used from the space OPENSSL_INCLUDE="$brew_prefix/opt/openssl/include" prefix
if ! env $sudo $envopts "$CPANM" --notest $opts $cpan_modules; then
echo
echo "reading latest cpanm build.log for details:"
echo
Expand Down

0 comments on commit 90c437c

Please sign in to comment.