summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-06-18 12:33:46 +0200
committertv <tv@krebsco.de>2017-06-18 12:33:46 +0200
commit0f1ba8dfd4863876a12c5736123680cfa3d194b2 (patch)
tree1d18f32663df0faf34c140a85a0ae94eea29e7a4
parent9f2b087650fc27d80e91e9f44d1af3a94155b95e (diff)
whatsupnix: s/broken/failed_drvs/
-rw-r--r--krebs/5pkgs/simple/whatsupnix/whatsupnix.bash12
1 files changed, 6 insertions, 6 deletions
diff --git a/krebs/5pkgs/simple/whatsupnix/whatsupnix.bash b/krebs/5pkgs/simple/whatsupnix/whatsupnix.bash
index 1d93f3e5c..35785f192 100644
--- a/krebs/5pkgs/simple/whatsupnix/whatsupnix.bash
+++ b/krebs/5pkgs/simple/whatsupnix/whatsupnix.bash
@@ -20,14 +20,14 @@
GAWK=${GAWK:-gawk}
NIX_STORE=${NIX_STORE:-nix-store}
-broken=$(mktemp)
-trap 'rm -f -- "$broken"' EXIT
+failed_drvs=$(mktemp --tmpdir whatsupnix.XXXXXXXX)
+trap 'rm -f -- "$failed_drvs"' EXIT
exec >&2
-$GAWK -v broken="$broken" '
+$GAWK -v failed_drvs="$failed_drvs" '
match($0, /^builder for ‘(\/nix\/store\/[^’]+\.drv)’ failed/, m) {
- print m[1] >> broken
+ print m[1] >> failed_drvs
}
{ print $0 }
'
@@ -74,9 +74,9 @@ while read -r drv; do
print_log "$drv"
echo
-done < "$broken"
+done < "$failed_drvs"
-if test -s "$broken"; then
+if test -s "$failed_drvs"; then
exit 2
else
exit 0