Skip to content

Commit b688ade

Browse files
committed
update: install script for better check command
1 parent d6897f7 commit b688ade

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

installer.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/zsh
22

33
function check_command() {
4-
command -v "$1" >/dev/null 2>&1 && {
5-
} || {
4+
command -v "$1" >/dev/null 2>&1 || {
65
echo "detect $1 is not installed."
76
echo "$2"
87
return 2

0 commit comments

Comments
 (0)