From 7e8dc2f20feb379a96bbb2b96112089e326fca5b Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 30 Jan 2021 20:57:40 +0100 Subject: [PATCH] Update run --- addons_updater/rootfs/etc/cont-init.d/run | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons_updater/rootfs/etc/cont-init.d/run b/addons_updater/rootfs/etc/cont-init.d/run index f811fda09..cb03784cf 100644 --- a/addons_updater/rootfs/etc/cont-init.d/run +++ b/addons_updater/rootfs/etc/cont-init.d/run @@ -49,13 +49,13 @@ for addons in $(bashio::config "addon|keys"); do #Change all instances of version bashio::log.info "... $SLUG : updating files" - files=$(grep -rl '"'${CURRENT}'"' /hassio-addons/emby) && echo $files | xargs sed -i 's/"'${CURRENT}'"/"'${LASTVERSION}'"/g' - git commit -m "Bot update" $files + files=$(grep -rl '"'${CURRENT}'"' /${BASENAME}/${SLUG}) && echo $files | xargs sed -i 's/"'${CURRENT}'"/"'${LASTVERSION}'"/g' + git commit -m "Bot update to $CURRENT" $files #Git commit and push bashio::log.info "... $SLUG : push to master" git remote set-url origin https://${GITUSER}:${GITPASS}@github.com/${REPOSITORY} - git push + git push #Update the current flag bashio::log.info "... $SLUG : updating current flag" @@ -67,4 +67,4 @@ for addons in $(bashio::config "addon|keys"); do else bashio::log.info "Addon $SLUG is already up-to-date." fi -done \ No newline at end of file +done