mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-21 07:18:05 -04:00
Use mkdir -p instead of mkdir to not error if already existing
See #364
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user