Browse Source

Do not edit the file by default

This also means -E is useless
Alois Mahdal 10 years ago
parent
commit
6f2b660b7f
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      bin/mkexec

+ 1
- 2
bin/mkexec View File

@@ -18,6 +18,7 @@ my $DEFAULT_EDIT = 0;
18 18
 ## '''' ##   ' ' '  '   '    '     '      '       '        '         '
19 19
 
20 20
 my $force = $DEFAULT_FORCE;
21
+my $edit = $DEFAULT_EDIT;
21 22
 my $name; my $type; my $purpose; my $edit;
22 23
 
23 24
 foreach (@ARGV) {
@@ -25,8 +26,6 @@ foreach (@ARGV) {
25 26
         $force++;
26 27
     } elsif (m/-e|--edit/) {
27 28
         $edit++;
28
-    } elsif (m/-E|--no-edit/) {
29
-        $edit = 0;
30 29
     } elsif (defined $type) {
31 30
         $purpose = $_;
32 31
     } elsif (defined $name) {