Skip to content

Commit

Permalink
Merge pull request #704 from zbentley/fix_703
Browse files Browse the repository at this point in the history
[Fix #703] use 'type' instead of 'which' for increased portability
  • Loading branch information
mhashizume authored Feb 29, 2024
2 parents a64bc04 + c4ae441 commit 4d148c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/install_shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fi
# Track to handle puppet5 to puppet6
if [ -f /opt/puppetlabs/puppet/VERSION ]; then
installed_version=`cat /opt/puppetlabs/puppet/VERSION`
elif which puppet >/dev/null 2>&1; then
elif type -p puppet >/dev/null; then
installed_version=`puppet --version`
else
installed_version=uninstalled
Expand Down

0 comments on commit 4d148c4

Please sign in to comment.