We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 886b4e1 commit bae7e7fCopy full SHA for bae7e7f
1 file changed
setup/install_hacktools.sh
@@ -32,6 +32,18 @@ printf "${bblue} Sourcing environment variables ${reset}\n"
32
printf "${yellow} TOOLS_PATH is set to: %s ${reset}\n" "$TOOLS_PATH"
33
printf "${yellow} LISTS_PATH is set to: %s ${reset}\n\n" "$LISTS_PATH"
34
35
+require_cmd() {
36
+ local cmd="$1"
37
+ if ! command -v "$cmd" >/dev/null 2>&1; then
38
+ printf "${red}[!] Required command not found: %s${reset}\n" "$cmd"
39
+ exit 1
40
+ fi
41
+}
42
+
43
+require_cmd git
44
+require_cmd wget
45
+require_cmd python3
46
47
printf "${bblue} Running: Installing Golang tools ${reset}\n\n"
48
49
# Detect Go installation
0 commit comments