From 0ee2747215034d4b8a1ed9339cd50a3d1e47a996 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 15 Feb 2021 16:32:06 +0100 Subject: [PATCH] garlicd: avoid no match fail We check the result in the next if. --- garlic/garlicd/garlicd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garlic/garlicd/garlicd b/garlic/garlicd/garlicd index cabb674..0d5dbe8 100755 --- a/garlic/garlicd/garlicd +++ b/garlic/garlicd/garlicd @@ -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"