From 80937e7b4d0cea4c81ea9970be1e56922ba391f4 Mon Sep 17 00:00:00 2001 From: David Lopez Jr <42970536+DLopezJr@users.noreply.github.com> Date: Thu, 16 Feb 2023 03:11:57 -0600 Subject: [PATCH] Improved output for no $1 error --- fp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fp.sh b/fp.sh index 959fed9..b3d4a0d 100644 --- a/fp.sh +++ b/fp.sh @@ -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 \n\nINSTALLED APPS\n$app\n" && exit ##remove app name from "$@" array shift 1