Skip to content

Commit

Permalink
"AM" 2.7.0 RELEASED!
Browse files Browse the repository at this point in the history
Added a dependency check at the beginning of the main script to prevent installation errors.
  • Loading branch information
ivan-hc authored Mar 17, 2022
1 parent aa81420 commit 35c5039
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion APP-MANAGER
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env bash

for name in "ar" "cat" "convert" "curl" "echo" "egrep" "grep" "tar" "test" "unzip" "wget" "zsync"
do
[[ $(which $name 2>/dev/null) ]] || { echo "" && echo -e 'ERROR: "'$name'" not found, required by some installation scripts.';deps=1; }
done
[[ $deps -ne 1 ]] || { echo -e "\nInstall the above and try again\n";exit 1; }

URL="https://raw.githubusercontent.com/ivan-hc/AM-application-manager/main"
arch=$(uname -m)
currentuser=$(who | awk '{print $1}')
Expand Down Expand Up @@ -516,6 +522,6 @@ case "$1" in
fi
done
shift;;
'version'|'-v'|'--version') echo "2.6.1-3";;
'version'|'-v'|'--version') echo "2.7.0";;
*) exec /opt/am/APP-MANAGER ;;
esac

0 comments on commit 35c5039

Please sign in to comment.