summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-05-04 16:08:31 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-05-04 16:08:31 +0200
commite6da87096ed02fea85863743b90c29bd3aa3f723 (patch)
treec1ed07167c91337940ea322a7d580bd7d4d58ac4
parentcdc1a1945c631863a2041443a7e1f73eb9517a82 (diff)
downloadnixos-e6da87096ed02fea85863743b90c29bd3aa3f723.tar
nixos-e6da87096ed02fea85863743b90c29bd3aa3f723.tar.gz
nixos-e6da87096ed02fea85863743b90c29bd3aa3f723.tar.bz2
nixos-e6da87096ed02fea85863743b90c29bd3aa3f723.tar.xz
nixos-e6da87096ed02fea85863743b90c29bd3aa3f723.zip
cleanup
-rw-r--r--ymir.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/ymir.nix b/ymir.nix
index 969fabe1..3c5caf66 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -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}"