Tests should fail if the OS filename argument is missing.
This commit is contained in:
parent
584a8541c0
commit
3669ba800e
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user