Skip to content

Commit 2b16d46

Browse files
committed
Fixed shells.
1 parent ee1a8f7 commit 2b16d46

File tree

7 files changed

+39
-33
lines changed

7 files changed

+39
-33
lines changed

code.bundle

Lines changed: 29 additions & 29 deletions
Large diffs are not rendered by default.

databases/branch_backup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/sh
2+
13
tar -cvf $1 $2
24
tar --append --file $1 $3
35
tar --append --file $1 $4

databases/branch_restore.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
#!/bin/sh
2+
13
rm -r $2*
24
tar -xf $1 -C /

databases/source_backup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
#!/bin/sh
2+
13
tar -czvf $1 -C $2 .

license.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The MIT License
2-
Copyright 2019 (c) Peter Širka <petersirka@gmail.com>
2+
Copyright 2019-2020 (c) Peter Širka <petersirka@gmail.com>
33

44
Permission is hereby granted, free of charge, to any person obtaining a
55
copy of this software and associated documentation files (the

schemas/branches.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ NEWSCHEMA('Branches', function(schema) {
1616
arg.push(project.path);
1717
arg.push(PATH.databases(project.id + '_changes.nosql'));
1818
arg.push(PATH.databases(project.id + '_parts.nosql'));
19-
Exec(PATH.databases('branch_backup.sh'), arg, callback || NOOP);
19+
Exec(PATH.databases('branch_backup.sh') + ' ' + arg.join(' '), { shell: '/bin/sh' }, callback || NOOP);
2020
};
2121

2222
var restore = function(project, branch, callback) {
@@ -44,7 +44,7 @@ NEWSCHEMA('Branches', function(schema) {
4444
var arg = [];
4545
arg.push(filename);
4646
arg.push(project.path);
47-
Exec(PATH.databases('branch_restore.sh'), arg, callback || NOOP);
47+
Exec(PATH.databases('branch_restore.sh') + ' ' + arg.join(' '), { shell: '/bin/sh' }, callback || NOOP);
4848
});
4949

5050
});

schemas/files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ NEWSCHEMA('Files', function(schema) {
318318
arg.push(PATH.temp(filename));
319319
arg.push(project.path);
320320

321-
Exec(PATH.databases('source_backup.sh'), arg, function(err) {
321+
Exec(PATH.databases('source_backup.sh') + ' ' + arg.join(' '), { shell: '/bin/sh' }, function(err) {
322322
if (err) {
323323
$.invalid(err);
324324
} else {

0 commit comments

Comments
 (0)