Bash if parameter



examples/bash/if_parameter.sh
#!/bin/bash

if [ "$1" == "" ]
then
    echo $0 DIRNAME
    exit 1
fi

echo "$1"