garlicd: avoid no match fail

We check the result in the next if.
This commit is contained in:
Rodrigo Arias 2021-02-15 16:32:06 +01:00
parent 5fd2a62684
commit 0ee2747215

View File

@ -17,7 +17,7 @@ bscpkgsdir=$(readlink -f "$1")
garlic_sandbox=$(nix show-config |\
grep extra-sandbox-paths |\
grep -o '/garlic=[^ ]*')
grep -o '/garlic=[^ ]*' || true)
if [ -z "$garlic_sandbox" ]; then
msg "Missing extra-sandbox-paths /garlic mountpoint"