Update 99-run.sh

This commit is contained in:
Alexandre
2022-04-27 12:12:11 +02:00
committed by GitHub
parent 4d85fccb0b
commit f70dd1c3ed

View File

@@ -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