Skip to content

Commit 4d148c4

Browse files
authored
Merge pull request #704 from zbentley/fix_703
[Fix #703] use 'type' instead of 'which' for increased portability
2 parents a64bc04 + c4ae441 commit 4d148c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/install_shell.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ fi
144144
# Track to handle puppet5 to puppet6
145145
if [ -f /opt/puppetlabs/puppet/VERSION ]; then
146146
installed_version=`cat /opt/puppetlabs/puppet/VERSION`
147-
elif which puppet >/dev/null 2>&1; then
147+
elif type -p puppet >/dev/null; then
148148
installed_version=`puppet --version`
149149
else
150150
installed_version=uninstalled

0 commit comments

Comments
 (0)