diff --git a/rpi-update b/rpi-update index 36fb11f..98a4ebe 100755 --- a/rpi-update +++ b/rpi-update @@ -29,6 +29,7 @@ SKIP_SDK=${SKIP_SDK:-0} SKIP_REPODELETE=${SKIP_REPODELETE:-0} SKIP_BACKUP=${SKIP_BACKUP:-0} SKIP_DOWNLOAD=${SKIP_DOWNLOAD:-0} +SKIP_WARNING=${SKIP_WARNING:-0} WANT_SYMVERS=${WANT_SYMVERS:-0} RPI_UPDATE_UNSUPPORTED=${RPI_UPDATE_UNSUPPORTED:-0} JUST_CHECK=${JUST_CHECK:-0} @@ -122,6 +123,9 @@ function show_notice { if ! echo "$NOTICE" | grep -q WARNING; then return fi + if [[ ${SKIP_WARNING} -ne 0 ]]; then + return + fi read -p "Would you like to proceed? (y/N)" -n 1 -r -s echo "" if ! [[ $REPLY =~ ^[Yy]$ ]]; then