From 6e0e2f0bf6f804a2b260a1410abb48d7fa301b64 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 25 Feb 2021 11:19:45 +0100 Subject: [PATCH] garlicd: drop bscpkgs argument requirement The bscpkgs/default.nix is not longer read, as the garlic tool only needs it for the fetching (-F), when it runs nix-build. --- garlic/garlicd/garlicd | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/garlic/garlicd/garlicd b/garlic/garlicd/garlicd index abfc466..4dfb8ed 100755 --- a/garlic/garlicd/garlicd +++ b/garlic/garlicd/garlicd @@ -6,15 +6,13 @@ msg() { >&2 echo "garlicd: $@" } -if [ -z "$1" ]; then - >&2 echo "usage: garlicd " +if [ ! -z "$1" ]; then + >&2 echo "usage: garlicd" exit 1 fi export PATH="@extraPath@:$PATH" -bscpkgsdir=$(readlink -f "$1") - garlic_sandbox=$(nix show-config |\ grep extra-sandbox-paths |\ grep -o '/garlic=[^ ]*' || true) @@ -47,8 +45,6 @@ for fifo in "$run" "$completed" "$wipe"; do fi done -cd "$bscpkgsdir" - while true; do msg "Waiting for experiments ..." read -r tre < "$run"