mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01:00
Hide git msg
This commit is contained in:
@@ -81,7 +81,7 @@ for addons in $(bashio::config "addon|keys"); do
|
||||
else
|
||||
LOGINFO="... $SLUG : updating ${REPOSITORY}" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||
cd "/data/$BASENAME"
|
||||
git pull --rebase >/dev/null || git reset --hard; git pull --rebase >/dev/null
|
||||
git pull --rebase &>/dev/null || git reset --hard &>/dev/null; git pull --rebase &>/dev/null
|
||||
fi
|
||||
|
||||
#Define the folder addon
|
||||
@@ -145,8 +145,8 @@ for addons in $(bashio::config "addon|keys"); do
|
||||
git commit -m "Update to ${LASTVERSION}" >/dev/null
|
||||
|
||||
LOGINFO="... $SLUG : push to github" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||
git remote set-url origin "https://${GITUSER}:${GITPASS}@github.com/${REPOSITORY}" --quiet >/dev/null
|
||||
git push --quiet >/dev/null
|
||||
git remote set-url origin "https://${GITUSER}:${GITPASS}@github.com/${REPOSITORY}" &>/dev/null
|
||||
git push &>/dev/null
|
||||
|
||||
#Log
|
||||
bashio::log.yellow "... $SLUG updated from ${CURRENT} to ${LASTVERSION}"
|
||||
|
||||
Reference in New Issue
Block a user