Tests should fail if the OS filename argument is missing.

This commit is contained in:
Georges Dupéron 2018-09-24 09:38:57 +02:00
parent 584a8541c0
commit 3669ba800e
No known key found for this signature in database
GPG Key ID: C7976374130A80F7
7 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@ set -e
if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then
echo "Usage: $0 operating_system_file" echo "Usage: $0 operating_system_file"
exit 1
fi fi
os_filename="$1" os_filename="$1"

View File

@ -3,6 +3,7 @@ set -e
if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then
echo "Usage: $0 operating_system_file" echo "Usage: $0 operating_system_file"
exit 1
fi fi
os_filename="$1" os_filename="$1"

View File

@ -3,6 +3,7 @@ set -e
if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then
echo "Usage: $0 operating_system_file" echo "Usage: $0 operating_system_file"
exit 1
fi fi
# Force the path to be relative or absolute, but with at least one / # Force the path to be relative or absolute, but with at least one /
# Otherwise, the command will be searched in the $PATH, instead of using the # Otherwise, the command will be searched in the $PATH, instead of using the

View File

@ -3,6 +3,7 @@ set -e
if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then
echo "Usage: $0 operating_system_file" echo "Usage: $0 operating_system_file"
exit 1
fi fi
# Force the path to be relative or absolute, but with at least one / # Force the path to be relative or absolute, but with at least one /
# Otherwise, the command will be searched in the $PATH, instead of using the # Otherwise, the command will be searched in the $PATH, instead of using the

View File

@ -3,6 +3,7 @@ set -e
if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then
echo "Usage: $0 operating_system_file" echo "Usage: $0 operating_system_file"
exit 1
fi fi
os_filename="$1" os_filename="$1"

View File

@ -3,6 +3,7 @@ set -e
if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then
echo "Usage: $0 operating_system_file" echo "Usage: $0 operating_system_file"
exit 1
fi fi
os_filename="$1" os_filename="$1"

View File

@ -3,6 +3,7 @@ set -e
if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then
echo "Usage: $0 operating_system_file" echo "Usage: $0 operating_system_file"
exit 1
fi fi
os_filename="$1" os_filename="$1"