Fix if statements
This commit is contained in:
@@ -33,13 +33,15 @@ function print_help()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ -z "$1" ]
|
if [ -z "$1" ]
|
||||||
|
then
|
||||||
echo "use the -h flag to get help on how to use this script"
|
echo "use the -h flag to get help on how to use this script"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = "-h" ]
|
if [ "$1" = "-h" ]
|
||||||
then
|
then
|
||||||
print_help
|
print_help
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
if [ -z "$2" ]
|
if [ -z "$2" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user