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