We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aaf0e8f + a251c8b commit 8b07f84Copy full SHA for 8b07f84
just-backup-btrfs
@@ -28,7 +28,8 @@ class Just_backup_btrfs {
28
*/
29
function __construct ($config) {
30
if (!$config) {
31
- exit("Incorrect configuration, aborted\n");
+ echo "Incorrect configuration, aborted\n";
32
+ exit(1);
33
}
34
$this->config = $config;
35
if (file_exists('/usr/sbin/btrfs')) {
@@ -38,7 +39,8 @@ class Just_backup_btrfs {
38
39
} elseif (file_exists('/bin/btrfs')) {
40
$this->binary = '/bin/btrfs';
41
} else {
- throw new RuntimeException("Can't find btrfs binary");
42
+ echo "Can't find btrfs binary\n";
43
44
45
46
function backup () {
0 commit comments