diff options
| author | Jacob Pipkin <j@dawnrazor.net> | 2012-08-30 07:54:37 -0500 |
|---|---|---|
| committer | Jacob Pipkin <j@dawnrazor.net> | 2012-08-30 07:54:37 -0500 |
| commit | 5238826dc668df2dafc47f3b26e5862ff1db7591 (patch) | |
| tree | 927984aea802ea96093a16f045d1f4f4e7490124 /sboinstall | |
| parent | cd16a547b321e8a10716868c7788d016531511d8 (diff) | |
| download | sbotools2-5238826dc668df2dafc47f3b26e5862ff1db7591.tar.xz | |
first stage applying changes from slack14 rewrite back into slack13.37 version
Diffstat (limited to 'sboinstall')
| -rwxr-xr-x | sboinstall | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -17,7 +17,7 @@ use warnings FATAL => 'all'; my $self = basename ($0); -sub show_usage { +sub show_usage () { print <<EOF Usage: $self [options] sbo @@ -38,10 +38,10 @@ EOF my %options; getopts ('hvcdripj:R', \%options); -show_usage () and exit (0) if exists $options{h}; -show_version () and exit (0) if exists $options{v}; +show_usage and exit 0 if exists $options{h}; +show_version and exit 0 if exists $options{v}; -show_usage () and exit (0) unless exists $ARGV[0]; +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'); @@ -55,6 +55,6 @@ for my $opt (@opts2) { unshift @ARGV, "-$opt $options{$opt}" if exists $options{$opt}; } -unshift @ARGV, '/usr/sbin/sboupgrade', '-oN'; -system @ARGV; +system '/usr/sbin/sboupgrade', '-oN', @ARGV; + exit 0; |
