From 0a32c56fce8742a110417ca906e8d5f2b6a52ab9 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 30 Jan 2021 21:35:28 +0100 Subject: [PATCH] Update run --- addons_updater/rootfs/etc/cont-init.d/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons_updater/rootfs/etc/cont-init.d/run b/addons_updater/rootfs/etc/cont-init.d/run index f7b2ba8b6..d808f9669 100644 --- a/addons_updater/rootfs/etc/cont-init.d/run +++ b/addons_updater/rootfs/etc/cont-init.d/run @@ -47,7 +47,7 @@ for addons in $(bashio::config "addon|keys"); do #Change all instances of version bashio::log.info "... $SLUG : updating files" - files=$(grep -rl '"'${CURRENT}'"' /${BASENAME}/${SLUG}) && echo $files | xargs sed -i 's/"'${CURRENT}'"/"'${LASTVERSION}'"/g' + 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 @@ -57,7 +57,7 @@ for addons in $(bashio::config "addon|keys"); do #Update the current flag bashio::log.info "... $SLUG : updating current flag" - sed -i "s/${CURRENT}/${LASTVERSION}/g" /data/options.json + sed -i "s/${CURRENT}/${LASTVERSION}/g" /data/options.json #Log bashio::log.info "... $SLUG : updated and published"