diff options
| author | Jacob Pipkin <j@dawnrazor.net> | 2012-06-11 23:05:21 -0500 |
|---|---|---|
| committer | Jacob Pipkin <j@dawnrazor.net> | 2012-06-11 23:05:21 -0500 |
| commit | 8dfe0461d5e4ae3ef31c0a01a9cc04e7334a458c (patch) | |
| tree | d9c78b0077beb355f19075614759074b1ecc09b2 /sboinstall | |
| parent | 3fe7112f8c96478a55eeebe0d63665c1435c5dda (diff) | |
| download | sbotools2-8dfe0461d5e4ae3ef31c0a01a9cc04e7334a458c.tar.xz | |
bunch more code reductions and stuff
Diffstat (limited to 'sboinstall')
| -rwxr-xr-x | sboinstall | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -44,15 +44,15 @@ show_usage () and exit (0) unless exists $ARGV[0]; # setup any options which do not require arguments my @opts1 = ('c', 'd', 'r', 'i', 'p', 'R'); for my $opt (@opts1) { - unshift (@ARGV, "-$opt") if exists $options{$opt}; + unshift @ARGV, "-$opt" if exists $options{$opt}; } # setup any options which do require arguments my @opts2 = ('j'); for my $opt (@opts2) { - unshift (@ARGV, "-$opt $options{$opt}") if exists $options{$opt}; + unshift @ARGV, "-$opt $options{$opt}" if exists $options{$opt}; } -unshift (@ARGV, '-oN'); -system ('/usr/sbin/sboupgrade', @ARGV); +unshift @ARGV, '/usr/sbin/sboupgrade', '-oN'; +system @ARGV; exit 0; |
