Skip to content

Commit

Permalink
fix: use command -v to check if command exists
Browse files Browse the repository at this point in the history
  • Loading branch information
rochecompaan committed Feb 2, 2024
1 parent 342d9f2 commit 96f2a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ TEMP_DOWNLOAD="./scaf"
DESTINATION="/usr/local/bin/scaf"

command_exists() {
type "$1" &> /dev/null
command -v "$1" &> /dev/null
}

detect_os_and_arch() {
Expand Down

0 comments on commit 96f2a6a

Please sign in to comment.