Allow to parse old options for updater.sh

This commit is contained in:
Emanuele Petriglia 2018-06-17 19:53:52 +02:00
parent 7296d00e84
commit 78432634fb
No known key found for this signature in database
GPG Key ID: CD2F70AE16A43647

View File

@ -218,8 +218,15 @@ while :; do
--help|-h) shift; SHOW_HELP="true";;
--version|-v) shift; SHOW_VERSION="true";;
--backup|-b) shift; MAKE_BACKUP="true";;
# Deprecated options.
-donotupdate) shift; warn "'-donotupdate' is a deprecated option";;
-update) shift; warn "'-update' is a deprecated option";;
# Special cases.
"") break;; # Default case: no more options.
*) error "Unrecognized option '$1'";;
esac
done