diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-12-12 12:32:27 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-12-12 12:32:27 -0200 |
commit | 928d388568308691e2a714cdcfee15335de94346 (patch) | |
tree | 2ff5686ebe429e123892da4813249ea45787813c /share/hydractl/upgrade | |
parent | 103334fc729de2c982c83b4886faad40ff5e32ce (diff) | |
download | hydra-928d388568308691e2a714cdcfee15335de94346.tar.gz hydra-928d388568308691e2a714cdcfee15335de94346.tar.bz2 |
Param fix at upgrade
Diffstat (limited to 'share/hydractl/upgrade')
-rwxr-xr-x | share/hydractl/upgrade | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/share/hydractl/upgrade b/share/hydractl/upgrade index d0ccde9..5a2f597 100755 --- a/share/hydractl/upgrade +++ b/share/hydractl/upgrade @@ -16,6 +16,9 @@ # License along with this program. If not, see # <http://www.gnu.org/licenses/>. +# Basic parameters +CLEAN="$1" + # Set sudo config if [ "`whoami`" != 'root' ]; then sudo="sudo" @@ -33,6 +36,6 @@ fi hydractl chroot-upgrade # Cleanup -if [ "$2" == "clean" ]; then +if [ "$CLEAN" == "clean" ]; then $sudo aptitude clean fi |