garlicd: use head instead of the read builtin
It seems that bash is unable to propagate the SIGINT while reading from the FIFO. This fixes the anoying ^C^C^C problems found when running garlicd.
This commit is contained in:
parent
87fa3bb336
commit
46f7add84c
@ -47,7 +47,7 @@ done
|
|||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
msg "Waiting for experiments ..."
|
msg "Waiting for experiments ..."
|
||||||
read -r tre < "$run"
|
tre=$(head -1 "$run")
|
||||||
|
|
||||||
msg "Attempting to run: $tre"
|
msg "Attempting to run: $tre"
|
||||||
msg "Copying files to MN4..."
|
msg "Copying files to MN4..."
|
||||||
@ -65,7 +65,7 @@ while true; do
|
|||||||
|
|
||||||
msg "Waiting for nix to finish the build..."
|
msg "Waiting for nix to finish the build..."
|
||||||
|
|
||||||
read -r tre2 < "$wipe"
|
tre2=$(head -1 "$wipe")
|
||||||
if [ "$tre" != "$tre2" ]; then
|
if [ "$tre" != "$tre2" ]; then
|
||||||
msg "error: trebuchet mismatch"
|
msg "error: trebuchet mismatch"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user