Update virtmon

This commit is contained in:
clsty
2025-11-12 21:54:08 +08:00
parent 9997fdce0c
commit 5696a4348e
5 changed files with 29 additions and 25 deletions
+2 -1
View File
@@ -16,13 +16,14 @@ para=$(getopt \
-l help \
-n "$0" -- "$@")
[ $? != 0 ] && echo "$0: Error when getopt, please recheck parameters." && exit 1
echo $para
#####################################################################################
eval set -- "$para"
while true ; do
case "$1" in
-h|--help) showhelp;exit;;
--) shift;break ;;
*) sleep 0 ;;
*) echo -e "$0: Wrong parameters.";exit 1;;
esac
done