From 928d388568308691e2a714cdcfee15335de94346 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 12 Dec 2013 12:32:27 -0200 Subject: Param fix at upgrade --- share/hydractl/upgrade | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'share') 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 # . +# 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 -- cgit v1.2.3