diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-04 16:11:31 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-04 16:11:31 +0200 |
commit | 88f430cc7edddb99077b9bd38941ce005f77ff80 (patch) | |
tree | 4020c1cbba25aacdf587e67555858b5fb63e5064 /ymir.nix | |
parent | e6da87096ed02fea85863743b90c29bd3aa3f723 (diff) | |
download | nixos-88f430cc7edddb99077b9bd38941ce005f77ff80.tar nixos-88f430cc7edddb99077b9bd38941ce005f77ff80.tar.gz nixos-88f430cc7edddb99077b9bd38941ce005f77ff80.tar.bz2 nixos-88f430cc7edddb99077b9bd38941ce005f77ff80.tar.xz nixos-88f430cc7edddb99077b9bd38941ce005f77ff80.zip |
use tee
Diffstat (limited to 'ymir.nix')
-rw-r--r-- | ymir.nix | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -90,9 +90,7 @@ in rec { | |||
90 | 90 | ||
91 | function zshexit() { [[ -n "''${tmpFile}" && -e "''${tmpFile}" ]] && rm -f "''${tmpFile}" } | 91 | function zshexit() { [[ -n "''${tmpFile}" && -e "''${tmpFile}" ]] && rm -f "''${tmpFile}" } |
92 | 92 | ||
93 | cat >! "''${tmpFile}" | 93 | prefix=$(tee "''${tmpFile}" | sha512sum | awk '{ print $1; }' | head -c 10) |
94 | |||
95 | prefix=$(sha512sum "''${tmpFile}" | awk '{ print $1; }' | head -c 10) | ||
96 | prefix=''${prefix:l} | 94 | prefix=''${prefix:l} |
97 | filename="$1" | 95 | filename="$1" |
98 | 96 | ||