Syntax for doing nothing in an if-then loop
Use a colon to do nothing in an if-then clause:
if [ -n "$1" ]; then : else echo "You did not give this script a parameter." fi
02/03/2010