diff options
-rw-r--r-- | ymir.nix | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -100,10 +100,10 @@ in rec { | |||
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}" |
104 | 104 | ||
105 | chmod 750 "''${baseDir}/''${prefix}" | 105 | chmod 755 "''${baseDir}/''${prefix}" |
106 | chmod 640 "''${baseDir}/''${prefix}/''${filename}" | 106 | chmod 644 "''${baseDir}/''${prefix}/''${filename}" |
107 | 107 | ||
108 | printf "%s/%s/%s" "''${baseUrl}" "''${prefix}" "''${filename}" | 108 | printf "%s/%s/%s" "''${baseUrl}" "''${prefix}" "''${filename}" |
109 | ''; | 109 | ''; |