diff options
-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}" |