mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 20:42:11 +00:00
ensure update functionality if update.sh was not changed.
This commit is contained in:
parent
a2afdcde7e
commit
bce7118cf1
1 changed files with 5 additions and 1 deletions
|
@ -61,11 +61,15 @@ function fuSELFUPDATE () {
|
||||||
myRESULT=$(git diff --name-only origin/18.04 | grep update.sh)
|
myRESULT=$(git diff --name-only origin/18.04 | grep update.sh)
|
||||||
if [ "$myRESULT" == "update.sh" ];
|
if [ "$myRESULT" == "update.sh" ];
|
||||||
then
|
then
|
||||||
echo "###### $myBLUE""Found newer version, will update myself and restart.""$myWHITE"
|
echo "###### $myBLUE""Found newer version, will be pulling updates and restart myself.""$myWHITE"
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git pull --force
|
git pull --force
|
||||||
exec "$1" "$2"
|
exec "$1" "$2"
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo "###### $myBLUE""Pulling updates from repository.""$myWHITE"
|
||||||
|
git reset --hard
|
||||||
|
git pull --force
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue