Skip to content

Commit

Permalink
Improved output for no $1 error
Browse files Browse the repository at this point in the history
  • Loading branch information
DLopezJr authored Feb 16, 2023
1 parent eaff282 commit 80937e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app=$(flatpak list --app | cut -f2 | awk -F. -v app="$1" '(tolower($NF) ~ app)')
test -x "$(command -v flatpak)" || printf "Flatpak package was not found.\n"

##check if app name was entered by user
test -z $1 && flatpak list --app && exit
test -z $1 && printf "Enter an app to fp.\n\$ fp <app>\n\nINSTALLED APPS\n$app\n" && exit

##remove app name from "$@" array
shift 1
Expand Down

0 comments on commit 80937e7

Please sign in to comment.