mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-29 18:56:04 +02:00
Enable dry_run
This commit is contained in:
@@ -7,6 +7,10 @@
|
|||||||
|
|
||||||
bashio::log.info "Starting $(lastversion --version)"
|
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..."
|
bashio::log.info "Checking status of referenced repositoriess..."
|
||||||
VERBOSE=$(bashio::config 'verbose')
|
VERBOSE=$(bashio::config 'verbose')
|
||||||
|
|
||||||
@@ -225,7 +229,9 @@ for f in */; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Push
|
# Push
|
||||||
git push &>/dev/null
|
if ! bashio::config.true "dry_run"; then
|
||||||
|
git push &>/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
#Log
|
#Log
|
||||||
bashio::log.yellow "... $SLUG updated from ${CURRENT} to ${LASTVERSION}"
|
bashio::log.yellow "... $SLUG updated from ${CURRENT} to ${LASTVERSION}"
|
||||||
|
|||||||
Reference in New Issue
Block a user