Add option to SKIP_WARNING

This commit is contained in:
popcornmix
2015-06-22 16:11:09 +01:00
parent 299a261dd1
commit 65564edc0e

View File

@@ -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