Enable dry_run

This commit is contained in:
Alexandre
2023-03-16 21:13:54 +01:00
committed by GitHub
parent 06959da3f0
commit a891a3d31e

View File

@@ -7,6 +7,10 @@
bashio::log.info "Starting $(lastversion --version)"
if bashio::config.true "dry_run"; then
bashio::log.warning "Dry run mode : on"
fi
bashio::log.info "Checking status of referenced repositoriess..."
VERBOSE=$(bashio::config 'verbose')
@@ -225,7 +229,9 @@ for f in */; do
fi
# Push
git push &>/dev/null
if ! bashio::config.true "dry_run"; then
git push &>/dev/null
fi
#Log
bashio::log.yellow "... $SLUG updated from ${CURRENT} to ${LASTVERSION}"