mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
18 lines
482 B
Bash
Executable File
18 lines
482 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Mark: Addigy Condition
|
|
# Install on success
|
|
|
|
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
|