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.
This commit is contained in:
parent
48820ee2d3
commit
6e0e2f0bf6
@ -6,15 +6,13 @@ msg() {
|
|||||||
>&2 echo "garlicd: $@"
|
>&2 echo "garlicd: $@"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ ! -z "$1" ]; then
|
||||||
>&2 echo "usage: garlicd <bscpkgs directory>"
|
>&2 echo "usage: garlicd"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PATH="@extraPath@:$PATH"
|
export PATH="@extraPath@:$PATH"
|
||||||
|
|
||||||
bscpkgsdir=$(readlink -f "$1")
|
|
||||||
|
|
||||||
garlic_sandbox=$(nix show-config |\
|
garlic_sandbox=$(nix show-config |\
|
||||||
grep extra-sandbox-paths |\
|
grep extra-sandbox-paths |\
|
||||||
grep -o '/garlic=[^ ]*' || true)
|
grep -o '/garlic=[^ ]*' || true)
|
||||||
@ -47,8 +45,6 @@ for fifo in "$run" "$completed" "$wipe"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
cd "$bscpkgsdir"
|
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
msg "Waiting for experiments ..."
|
msg "Waiting for experiments ..."
|
||||||
read -r tre < "$run"
|
read -r tre < "$run"
|
||||||
|
Loading…
Reference in New Issue
Block a user