test null condition

This commit is contained in:
“ibrahim0814”
2019-08-07 11:11:16 -07:00
parent 7c7db8b859
commit 6fdf86f06b

View File

@@ -4,6 +4,11 @@ set -eu
if [ "x$1" == "x" ] || [ "x$2" == "x" ];
then
echo "both variables are null"
fi
if [ -z "$1" ] || [ -z "$2" ]; then
echo 'Need 2 parameter are not empty'
fi