Fix options.

This commit is contained in:
clsty
2024-02-21 23:53:02 +08:00
parent 1c39e36840
commit 4216067726
+2 -2
View File
@@ -25,8 +25,8 @@ cleancache(){
# `man getopt` to see more
para=$(getopt \
-o hfd:c \
-l help,force,distro:,clean \
-o hfk:c \
-l help,force,kbset:,clean \
-n "$0" -- "$@")
[ $? != 0 ] && echo "$0: Error when getopt, please recheck parameters." && exit 1
#####################################################################################