projects
/
openwrt
/
staging
/
yousong.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
base-files: fix option parsing of -F/--force parameter
[openwrt/staging/yousong.git]
/
package
/
base-files
/
files
/
sbin
/
sysupgrade
diff --git
a/package/base-files/files/sbin/sysupgrade
b/package/base-files/files/sbin/sysupgrade
index 3868dc456e93e23eea04e6ed59113b79239b831c..62a4012a328010823e6578fe91d822eed2d22bcf 100755
(executable)
--- a/
package/base-files/files/sbin/sysupgrade
+++ b/
package/base-files/files/sbin/sysupgrade
@@
-25,7
+25,7
@@
while [ -n "$1" ]; do
-c) export SAVE_OVERLAY=1;;
-b|--create-backup) export CONF_BACKUP="$2"; shift;;
-f) export CONF_IMAGE="$2"; shift;;
- -F|--force) export FORCE=1;
shift;
;
+ -F|--force) export FORCE=1;;
-h|--help) export HELP=1; break;;
-*)
echo "Invalid option: $1"