diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2013-10-24 20:55:14 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2013-10-24 20:55:14 +0200 |
commit | a653f1d2e639d7636728660ff0470c66b906484d (patch) | |
tree | 298812ce11d031585462c12c7e328063edfebc44 | |
parent | 0e5a36a35f863e91aad439db094607623a0017ca (diff) | |
download | sbotools2-a653f1d2e639d7636728660ff0470c66b906484d.tar.xz |
got rid of given/when
Replaced given/when in sbosnap with if/elsif clauses, since given/when has
been made experimental with a warning in newer perl versions.
-rwxr-xr-x | sbosnap | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -54,9 +54,7 @@ if ($ARGV[0] =~ /fetch|update/) { show_usage and exit 1; } -given ($command) { - when ('fetch') {fetch_tree} - when ('update') {update_tree} -} +if ($command eq 'fetch') { fetch_tree } +elsif ($command eq 'update') { update_tree } exit 0; |