Use mkdir -p instead of mkdir to not error if already existing

See #364
This commit is contained in:
Daniel Martí 2015-08-12 13:40:30 -07:00
parent 98117b19c0
commit 0e3172b277

View File

@ -176,7 +176,7 @@ abstract class InstallIntoSystem {
@Override
protected List<String> getCopyToSystemCommands() {
List<String> commands = new ArrayList<>(3);
commands.add("mkdir " + getSystemFolder()); // create app directory if not existing
commands.add("mkdir -p " + getSystemFolder()); // create app directory if not existing
commands.add("chmod 755 " + getSystemFolder());
commands.add("cat " + context.getPackageCodePath() + " > " + getInstallPath() + ".tmp");
commands.add("chmod 644 " + getInstallPath() + ".tmp");