devnull all the things, we do our own messages
This commit is contained in:
parent
1b662fdff5
commit
4512edff0d
12
global.sh
12
global.sh
@ -26,15 +26,15 @@ parse_yaml() {
|
||||
gitupdate() {
|
||||
git remote add upstream https://github.com/jailmanager/jailman.git > /dev/null 2>&1
|
||||
echo "checking for updates using Branch: $1"
|
||||
git fetch upstream
|
||||
git update-index -q --refresh
|
||||
CHANGED=$(git diff --name-only "$1")
|
||||
git fetch upstream > /dev/null 2>&1
|
||||
git update-index -q --refresh > /dev/null 2>&1
|
||||
CHANGED=$(git diff --name-only "$1") > /dev/null 2>&1
|
||||
if [ -n "$CHANGED" ];
|
||||
then
|
||||
echo "script requires update"
|
||||
git reset --hard
|
||||
git checkout "${1}"
|
||||
git pull
|
||||
git reset --hard > /dev/null 2>&1
|
||||
git checkout "${1}" > /dev/null 2>&1
|
||||
git pull > /dev/null 2>&1
|
||||
echo "script updated, please restart the script manually"
|
||||
exit 1
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user