check if argument is set bash code example
Example: if argument bash
if [ -z "$1" ]
then
echo "No argument supplied"
fi
if ["$1" ]
then
echo "Argument supplied is: "$1
fi
if [ -z "$1" ]
then
echo "No argument supplied"
fi
if ["$1" ]
then
echo "Argument supplied is: "$1
fi