diff --git a/addons_updater/rootfs/etc/cont-init.d/99-run.sh b/addons_updater/rootfs/etc/cont-init.d/99-run.sh index 623e85532..0a67c8b47 100644 --- a/addons_updater/rootfs/etc/cont-init.d/99-run.sh +++ b/addons_updater/rootfs/etc/cont-init.d/99-run.sh @@ -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