mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-05 22:04:39 +01:00
Version 9.4 of my MDM scripts
This commit is contained in:
14
MDM/-install Installomator direct condition.sh
Executable file
14
MDM/-install Installomator direct condition.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
gitusername="Installomator"
|
||||
gitreponame="Installomator"
|
||||
appNewVersion=$(curl -sLI "https://github.com/$gitusername/$gitreponame/releases/latest" | grep -i "^location" | tr "/" "\n" | tail -1 | sed 's/[^0-9\.]//g')
|
||||
|
||||
destFile="/usr/local/Installomator/Installomator.sh"
|
||||
if [[ ! -e "${destFile}" || "$(${destFile} version)" != "$appNewVersion" ]]; then
|
||||
#echo "Let's install…"
|
||||
exit 0
|
||||
else
|
||||
#echo "No need!"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user