summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}"