diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-02-14 12:35:39 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-02-14 12:35:39 -0200 |
commit | 6610a0d6b283393c59df03bf19a27e524149f5f4 (patch) | |
tree | f3b3c8ca8e3525d84f4c819325cedadd047f0a38 /lib | |
parent | 39f407bdb202bea2fb81d4f66ce46618890ec2a7 (diff) | |
download | hydra-6610a0d6b283393c59df03bf19a27e524149f5f4.tar.gz hydra-6610a0d6b283393c59df03bf19a27e524149f5f4.tar.bz2 |
Adding system-upgrade subcommand
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/misc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/hydra/misc b/lib/hydra/misc index 24db45b..9aca158 100644 --- a/lib/hydra/misc +++ b/lib/hydra/misc @@ -106,3 +106,17 @@ function hydra_safe_run { $* hydra_exit_on_error $* } + +# Determine the next debian release +function hydra_next_debian_release { + local release="$1" + + if [ "$release" == "lenny" ]; then + echo "squeeze" + elif [ "$release" == "squeeze" ]; then + echo "wheezy" + else + echo "Unsupported release" + exit 1 + fi +} |