summaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-12-12 12:32:27 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-12-12 12:32:27 -0200
commit928d388568308691e2a714cdcfee15335de94346 (patch)
tree2ff5686ebe429e123892da4813249ea45787813c /share/hydractl
parent103334fc729de2c982c83b4886faad40ff5e32ce (diff)
downloadhydra-928d388568308691e2a714cdcfee15335de94346.tar.gz
hydra-928d388568308691e2a714cdcfee15335de94346.tar.bz2
Param fix at upgrade
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/upgrade5
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