Bash if parameter
- if
#!/bin/bash
if [ "$1" == "" ]
then
echo $0 DIRNAME
exit 1
fi
echo "$1"
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
#!/bin/bash
if [ "$1" == "" ]
then
echo $0 DIRNAME
exit 1
fi
echo "$1"