Skip to content

Commit

Permalink
Fix bash test with double brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbarnett committed Mar 9, 2019
1 parent 905ed72 commit a2ba2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/snap-pac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2ba2aa

Please sign in to comment.