diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-04 15:41:06 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-04 15:41:06 +0200 |
commit | 9879ebc796dd3582c522956769cef67b52920b7f (patch) | |
tree | 0b6b620d14f7140e45257d4246c52a5a57be0de8 | |
parent | 78578e0d369836167abd292695c01934e331aea1 (diff) | |
download | nixos-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.nix | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | ||