Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Please welcome oldisock! [;

  • Loading branch information...
commit 6163354da874134d51fec760c6a6324fff9a6429 1 parent 9a2cff8
authored January 02, 2010

Showing 1 changed file with 21 additions and 20 deletions. Show diff stats Hide diff stats

  1. 41  simpleburner.pl
41  simpleburner.pl
@@ -103,24 +103,6 @@ sub optcheck {
103 103
     }
104 104
 }
105 105
 
106  
-sub oldisock {
107  
-    print("Old iso file detected, delete it? [Y/n] "); my $reply=<STDIN>; chomp $reply;
108  
-    if ($reply eq "n") {
109  
-        print("Burn it? [Y/n] "); my $reply=<STDIN>; chomp $reply;
110  
-        if ($reply eq "n") {
111  
-            print("Stopped!\n");
112  
-            exit 1;
113  
-        } else {
114  
-            &burniso;
115  
-            exit 0;
116  
-        }
117  
-    } else {
118  
-        print("Deleting old iso file...");
119  
-        unlink($isoname);
120  
-        print("[OK]\n");
121  
-    }
122  
-}
123  
-
124 106
 sub makeiso {
125 107
     if (-e $isoname) {
126 108
         &oldisock;
@@ -152,6 +134,26 @@ sub burniso {
152 134
     print("[OK!]\n");
153 135
 }
154 136
 
  137
+sub oldisock {
  138
+    print("Old iso file detected, delete it? [Y/n] "); my $reply=<STDIN>; chomp $reply;
  139
+    if ($reply eq "n") {
  140
+        print("Burn it? [Y/n] "); my $reply=<STDIN>; chomp $reply;
  141
+        if ($reply eq "n") {
  142
+            print("Stopped!\n");
  143
+            exit 1;
  144
+        } else {
  145
+            &burniso;
  146
+            exit 0;
  147
+        }
  148
+    } else {
  149
+        print("Deleting old iso file...");
  150
+        unlink($isoname);
  151
+        print("[OK]\n");
  152
+	&makeiso;
  153
+	&burniso;
  154
+    }
  155
+}
  156
+
155 157
 if ($isoname =~ m/^~/) {
156 158
     $isoname =~ s/^~/$ENV{'HOME'}/;
157 159
 }
@@ -170,8 +172,7 @@ sub burniso {
170 172
     &optcheck;
171 173
 } else {
172 174
     &optcheck;
173  
-    &makeiso;
174  
-    &burniso;
  175
+    &oldisock;
175 176
 }
176 177
 
177 178
 #TODO:

0 notes on commit 6163354

Please sign in to comment.
Something went wrong with that request. Please try again.