Skip to content

Commit

Permalink
test -x not needed for flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
DLopezJr authored Feb 17, 2023
1 parent e48fb36 commit 57e0878
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 @@ -7,7 +7,7 @@ app=$(flatpak list --app | cut -f2 | awk -F. -v app="$1" '(tolower($NF) ~ tolowe

#FUNCTION(S)
##check if flatpak is installed and accesible to $PATH
test -x "$(command -v flatpak)" || printf "Flatpak package was not found.\n";
command -v flatpak || printf "Flatpak package was not found.\n";

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

0 comments on commit 57e0878

Please sign in to comment.