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 /sbosnap | |
| parent | cd16a547b321e8a10716868c7788d016531511d8 (diff) | |
| download | sbotools2-5238826dc668df2dafc47f3b26e5862ff1db7591.tar.xz | |
first stage applying changes from slack14 rewrite back into slack13.37 version
Diffstat (limited to 'sbosnap')
| -rwxr-xr-x | sbosnap | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -23,7 +23,7 @@ my %config = %SBO::Lib::config; my $sbo_home = $config{SBO_HOME}; my $self = basename ($0); -sub show_usage { +sub show_usage () { print <<EOF Usage: $self [options|command] @@ -39,25 +39,25 @@ Commands: EOF } -show_usage () and exit (1) unless exists $ARGV[0]; +show_usage and exit 1 unless exists $ARGV[0]; my %options; getopts ('hv', \%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}; # check for a command and, if found, execute it my $command; if ($ARGV[0] =~ /fetch|update/) { $command = $ARGV[0]; } else { - show_usage () and exit 1; + show_usage and exit 1; } given ($command) { - when ('fetch') { fetch_tree () } - when ('update') { update_tree () } + when ('fetch') {fetch_tree} + when ('update') {update_tree} } exit 0; |
