aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 89d8071..459f39e 100755
--- a/install.sh
+++ b/install.sh
@@ -1,7 +1,8 @@
# check if correct programs are installed
type git npm node python3 pip3
+ERROR="$?"
-if [[ $! -ne 0 ]]; then
+if [[ ERROR -ne 0 ]]; then
echo "install: one or more of the above programs are not installed. the programs in question have lines that end in \"not found\". please make sure that these programs are installed through your package manager"
exit 0
else