Skip to content

Commit

Permalink
fix check cmd (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
war-in authored Jan 10, 2024
1 parent 75ef6be commit 4a4c597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ main () {
}

check_cmd() {
if ! command -v "$1" &> /dev/null; then
if ! command -v "$1" >/dev/null 2>&1; then
echo "$1 is not available"
echo "Please install $1 and run the script again"
exit 1
Expand Down

0 comments on commit 4a4c597

Please sign in to comment.