pash: clean up

This commit is contained in:
Dylan Araps 2019-12-01 17:24:47 +00:00
parent bbc0732df7
commit 9288bc0a64
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

5
pash
View File

@ -175,9 +175,6 @@ exit 1
main() { main() {
: "${PASH_DIR:=${XDG_DATA_HOME:=$HOME/.local/share}/pash}" : "${PASH_DIR:=${XDG_DATA_HOME:=$HOME/.local/share}/pash}"
[ "$1" = '-?' ] || [ -z "$1" ] &&
usage
# Look for both 'gpg' and 'gpg2', # Look for both 'gpg' and 'gpg2',
# preferring 'gpg2' if it is available. # preferring 'gpg2' if it is available.
command -v gpg >/dev/null 2>&1 && gpg=gpg command -v gpg >/dev/null 2>&1 && gpg=gpg
@ -241,4 +238,4 @@ set +x
# to avoid insecurities with word-splitting. # to avoid insecurities with word-splitting.
set -f set -f
main "$@" [ "$1" ] || usage && main "$@"