]> mj.ucw.cz Git - bex.git/blobdiff - lib/bin/bex-add
Make editor configurable
[bex.git] / lib / bin / bex-add
index 4f2c3b39138822594dac031e807c298db4637814..d984d60ecf9a93dbed78e992e59ec7edcd46a1b6 100755 (executable)
@@ -95,7 +95,7 @@ if (defined $requeue_id) {
        if (!$given_go) {
                $tmp_fn = $job->save;
                my $orig_stat = stat($tmp_fn) or die;
-               system "editor", $tmp_fn and die "Editor exited with an error, file kept as $tmp_fn\n";
+               system $BEX::Config::editor_command, $tmp_fn and die "Editor exited with an error, file kept as $tmp_fn\n";
                my $new_stat = stat($tmp_fn) or die "File $tmp_fn disappeared under my hands: $!\n";
                if ($new_stat->mtime <= $orig_stat->mtime && $new_stat->size == $orig_stat->size) {
                        unlink $tmp_fn;