Fix bash test with double brackets

This commit is contained in:
Wes Barnett 2019-03-09 13:25:55 -05:00
parent 905ed72380
commit a2ba2aa201
No known key found for this signature in database
GPG key ID: 1070BCC98C18BD66

View file

@ -25,7 +25,7 @@ set -o errtrace
readonly argv0="snap-pac"
readonly SNAPPAC_CONFIG_FILE=/etc/snap-pac.conf
readonly SNAPPER_CONFIG_FILE=/etc/conf.d/snapper
if [ -z $PPID ] || [ -z $(ps -q $PPID -o args=) ]; then
if [[ -z $PPID ]] || [[ -z $(ps -q $PPID -o args=) ]]; then
printf "Parent process ID is empty.\n"
readonly pacman_cmd=""
else