Update vmcreate1.sh
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user