Skip to content
This repository was archived by the owner on Dec 9, 2019. It is now read-only.

Commit d6c45a4

Browse files
committed
[skip ci] check for valet dependencies
1 parent 5d1e70b commit d6c45a4

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

valet

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,20 @@ function check_dependencies() {
1111
local NC='\033[0m'
1212
local msg=''
1313

14-
if [[ -f "$DIR/in_testing" ]]; then
15-
for cmd in "jq" "xsel" "certutil" "NetworkManager"; do
16-
local str=''
17-
18-
if ! [[ -x "$(command -v $cmd)" ]]; then
19-
printf -v str " - %s\n" "$cmd"
20-
local msg+="$str"
21-
fi
22-
done
23-
24-
if [[ $msg != '' ]]; then
25-
printf "${RED}You have missing Valet dependiencies:\n"
26-
printf "$msg"
27-
printf "\nPlease refer to https://cpriego.github.io/valet-linux/requirements on how to install them.${NC}\n"
28-
exit 1
14+
for cmd in "jq" "xsel" "certutil" "NetworkManager"; do
15+
local str=''
16+
17+
if ! [[ -x "$(command -v $cmd)" ]]; then
18+
printf -v str " - %s\n" "$cmd"
19+
local msg+="$str"
2920
fi
21+
done
22+
23+
if [[ $msg != '' ]]; then
24+
printf "${RED}You have missing Valet dependiencies:\n"
25+
printf "$msg"
26+
printf "\nPlease refer to https://cpriego.github.io/valet-linux/requirements on how to install them.${NC}\n"
27+
exit 1
3028
fi
3129
}
3230

0 commit comments

Comments
 (0)