Skip to content

Commit

Permalink
fix(ssh): use 'command -v' instead of 'which' for checking ssh command
Browse files Browse the repository at this point in the history
  • Loading branch information
vhqtvn committed Jul 14, 2024
1 parent 6d861f8 commit 2831dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/res/raw/bin_ensure_ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
RED="\033[0;31m"
NC="\033[0m"

while ! which ssh >/dev/null; do
while ! command -v ssh &>/dev/null; do
set +x
echo -e ${RED}ssh command not installed, which package do you want to install?${NC}
echo 1. dropbear
Expand Down

0 comments on commit 2831dc7

Please sign in to comment.