syntax changes

This commit is contained in:
lelgenio 2020-11-19 19:06:45 -03:00
parent 79322bbe66
commit 7d0a850d71
1 changed files with 13 additions and 12 deletions

View File

@ -36,18 +36,19 @@ delete(){
}
usage(){
cmdname=$(basename "$0")
echo "Commands: "
echo " $0 search -- searches the current playlist for songs and plays it"
echo " $0 delete -- prompts to delete the current song"
echo " $cmdname search -- Searches the current playlist for songs and plays it."
echo " $cmdname delete -- Prompts to delete the current song."
}
if [ "$1" = "delete" ]
then
delete
elif [ "$1" = "search" ]
then
search
else
usage
search
fi
case "$1" in
delete)
delete ;;
search)
search ;;
*)
usage
search
;;
esac