Update vmcreate1.sh

This commit is contained in:
2025-10-24 13:29:26 +00:00
parent 0c1e52716e
commit 6059b128ab

View File

@@ -16,12 +16,11 @@ while getopts "a:f:h" opt; do
a) haadd=true; ;; a) haadd=true; ;;
f) file="$OPTARG" ;; f) file="$OPTARG" ;;
h) show_help ; exit 0;; h) show_help ; exit 0;;
*) noopts=true # *) noopts=true
esac esac
done done
if [ -f $file ]; then echo "File $file does not exist."; exit 1 if [ -f $file ]; then echo "File $file does not exist."; exit 1
if [ noargs ]
# Если нет аргументов, то создаем временный файл # Если нет аргументов, то создаем временный файл
if [ $# -eq 0 ] then if [ $# -eq 0 ] then