Fixes bug in bpkg-install global check

Bug was caused by incorrect placement of quoute character, causing the result of a check to be incorrect.
pull/102/head
Ben Peachey 6 years ago committed by Joseph Werle
parent ba0308f5c3
commit d0df4f28f1

@ -341,7 +341,7 @@ bpkg_install_from_remote () {
)"
## check if forced global
if [[ ! -"z $(echo -n "${json}" | bpkg-json -b | grep '\["global"\]' | awk '{ print $2 }' | tr -d '"')" ]]; then
if [[ ! -z "$(echo -n "${json}" | bpkg-json -b | grep '\["global"\]' | awk '{ print $2 }' | tr -d '"')" ]]; then
needs_global=1
fi

Loading…
Cancel
Save