mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update 99-run.sh
This commit is contained in:
@@ -46,13 +46,12 @@ fi
|
||||
LOGINFO="... parse addons" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
||||
|
||||
# Go through all folders, add to filters if not existing
|
||||
echo "go in folder"
|
||||
|
||||
cd /data/"$BASENAME" || exit
|
||||
for f in */; do
|
||||
|
||||
if [ -f /data/"$BASENAME"/"$f"/updater.json ]; then
|
||||
SLUG=$f
|
||||
SLUG=${f//\/}
|
||||
|
||||
# Rebase
|
||||
LOGINFO="... updating ${REPOSITORY}" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
||||
@@ -177,7 +176,7 @@ if [ -f /data/"$BASENAME"/"$f"/updater.json ]; then
|
||||
|
||||
#Git commit and push
|
||||
git add -A # add all modified files
|
||||
SLUG=${SLUG//\/}
|
||||
|
||||
git commit -m "Updater bot : $SLUG updated to ${LASTVERSION}" >/dev/null
|
||||
|
||||
LOGINFO="... $SLUG : push to github" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
||||
|
||||
Reference in New Issue
Block a user