aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpsshd4
1 files changed, 2 insertions, 2 deletions
diff --git a/psshd b/psshd
index 7e5483e..ab17a8b 100755
--- a/psshd
+++ b/psshd
@@ -22,7 +22,7 @@ PATH=/usr/lib/autossh/autossh:/sbin:$PATH
# Check we have access to the required binaries
cmds=(autossh start-stop-daemon)
for cmd in "${cmds[@]}"; do
- if ! type -p "$cmd" >/dev/null; then
+ if ! hash "$cmd" >/dev/null; then
printf '%s - Could not find %s in PATH\n' "$self" "$cmd" >&2
exit 127
fi
@@ -54,6 +54,6 @@ start-stop-daemon \
--start \
--quiet \
--pidfile "$AUTOSSH_PIDFILE" \
- --exec "$(type -p autossh)" \
+ --exec "$(type -P autossh)" \
-- "$@"