Add proper parsing of help flag
This commit is contained in:
@@ -32,15 +32,21 @@ function print_help()
|
||||
echo "\tThis is the same as running the script for each single file in the list"
|
||||
}
|
||||
|
||||
if [ -z "$1" ]
|
||||
echo "use the -h flag to get help on how to use this script"
|
||||
exit 0
|
||||
fi
|
||||
if [ "$1" = "-h" ]
|
||||
then
|
||||
print_help
|
||||
exit 0
|
||||
fi
|
||||
if [ -z "$2" ]
|
||||
then
|
||||
echo "staying in current directory"
|
||||
else
|
||||
if [ "$1" = "-h" ]
|
||||
then
|
||||
print_help
|
||||
exit 0
|
||||
elif [ "$1" = "-l" ]
|
||||
|
||||
if [ "$1" = "-l" ]
|
||||
then
|
||||
echo "Looping through $2"
|
||||
while read flacfile; do
|
||||
|
||||
Reference in New Issue
Block a user