diff options
-rw-r--r-- | ymir.nix | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -90,7 +90,9 @@ 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=$(tee "''${tmpFile}" | sha512sum | awk '{ print $1; }' | head -c 10) | 93 | cat >! "''${tmpFile}" |
94 | |||
95 | prefix=$(sha512sum "''${tmpFile}" | awk '{ print $1; }' | head -c 10) | ||
94 | prefix=''${prefix:l} | 96 | prefix=''${prefix:l} |
95 | filename="$1" | 97 | filename="$1" |
96 | 98 | ||