summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-05-04 15:41:06 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-05-04 15:41:06 +0200
commit9879ebc796dd3582c522956769cef67b52920b7f (patch)
tree0b6b620d14f7140e45257d4246c52a5a57be0de8
parent78578e0d369836167abd292695c01934e331aea1 (diff)
downloadnixos-9879ebc796dd3582c522956769cef67b52920b7f.tar
nixos-9879ebc796dd3582c522956769cef67b52920b7f.tar.gz
nixos-9879ebc796dd3582c522956769cef67b52920b7f.tar.bz2
nixos-9879ebc796dd3582c522956769cef67b52920b7f.tar.xz
nixos-9879ebc796dd3582c522956769cef67b52920b7f.zip
tmpFile was never being written
-rw-r--r--ymir.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/ymir.nix b/ymir.nix
index e1b94d2a..82f9c5d2 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -90,7 +90,7 @@ in rec {
90 90
91 TRAPEXIT() { [[ -n "''${tmpFile}" && -e "''${tmpFile}" ]] && rm -f "''${tmpFile}" } 91 TRAPEXIT() { [[ -n "''${tmpFile}" && -e "''${tmpFile}" ]] && rm -f "''${tmpFile}" }
92 92
93 prefix=$(sha512sum "''${tmpFile}" | awk '{ print $1; }' | head -c 10) 93 prefix=$(tee "''${tmpFile}" | sha512sum | awk '{ print $1; }' | head -c 10)
94 prefix=''${prefix:l} 94 prefix=''${prefix:l}
95 filename="$1" 95 filename="$1"
96 96