diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-04 16:08:31 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-04 16:08:31 +0200 |
commit | e6da87096ed02fea85863743b90c29bd3aa3f723 (patch) | |
tree | c1ed07167c91337940ea322a7d580bd7d4d58ac4 | |
parent | cdc1a1945c631863a2041443a7e1f73eb9517a82 (diff) | |
download | nixos-e6da87096ed02fea85863743b90c29bd3aa3f723.tar nixos-e6da87096ed02fea85863743b90c29bd3aa3f723.tar.gz nixos-e6da87096ed02fea85863743b90c29bd3aa3f723.tar.bz2 nixos-e6da87096ed02fea85863743b90c29bd3aa3f723.tar.xz nixos-e6da87096ed02fea85863743b90c29bd3aa3f723.zip |
cleanup
-rw-r--r-- | ymir.nix | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -96,8 +96,8 @@ in rec { | |||
96 | prefix=''${prefix:l} | 96 | prefix=''${prefix:l} |
97 | filename="$1" | 97 | filename="$1" |
98 | 98 | ||
99 | [[ -z "''${prefix}" || -z "''${filename}" ]] && exit 2; | 99 | [[ -z "''${prefix}" || -z "''${filename}" ]] && exit 2 |
100 | [[ ! -f "''${tmpFile}" || $(stat -c '%s' "''${tmpFile}") == "0" ]] && exit 3; | 100 | [[ ! -f "''${tmpFile}" || $(stat -c '%s' "''${tmpFile}") == "0" ]] && exit 3 |
101 | 101 | ||
102 | mkdir -p "''${baseDir}/''${prefix}" | 102 | mkdir -p "''${baseDir}/''${prefix}" |
103 | mv "''${tmpFile}" "''${baseDir}/''${prefix}/''${filename}" | 103 | mv "''${tmpFile}" "''${baseDir}/''${prefix}/''${filename}" |