Use mkdir -p instead of mkdir to not error if already existing
See #364
This commit is contained in:
parent
98117b19c0
commit
0e3172b277
@ -176,7 +176,7 @@ abstract class InstallIntoSystem {
|
|||||||
@Override
|
@Override
|
||||||
protected List<String> getCopyToSystemCommands() {
|
protected List<String> getCopyToSystemCommands() {
|
||||||
List<String> commands = new ArrayList<>(3);
|
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("chmod 755 " + getSystemFolder());
|
||||||
commands.add("cat " + context.getPackageCodePath() + " > " + getInstallPath() + ".tmp");
|
commands.add("cat " + context.getPackageCodePath() + " > " + getInstallPath() + ".tmp");
|
||||||
commands.add("chmod 644 " + getInstallPath() + ".tmp");
|
commands.add("chmod 644 " + getInstallPath() + ".tmp");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user