Permalink
Browse files

Remove some useless checks

  • Loading branch information...
1 parent 0ca0796 commit 3408e37f62f7a542f759c9f23c1f6f34c3d11fd1 @tadzik tadzik committed Feb 6, 2011
Showing with 3 additions and 8 deletions.
  1. +3 −8 simpleburner.pl
View
@@ -76,6 +76,7 @@ sub helpmsg {
EOM
exit 0;
}
+
sub programcheck {
print("Looking for cdrkit...");
if (-e '/usr/bin/wodim' and -e '/usr/bin/genisoimage') {
@@ -155,14 +156,8 @@ sub oldisock {
}
}
-if ($isoname =~ m/^~/) {
- $isoname =~ s/^~/$ENV{'HOME'}/;
-}
-
-if ($datadir =~ m/^~/) {
- $datadir =~ s/^~/$ENV{'HOME'}/;
-}
-
+$isoname =~ s/^~/$ENV{'HOME'}/;
+$datadir =~ s/^~/$ENV{'HOME'}/;
warning();
programcheck();

0 comments on commit 3408e37

Please sign in to comment.