]> gitweb.fluxo.info Git - hydra.git/commitdiff
Param fix at upgrade
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Dec 2013 14:32:27 +0000 (12:32 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Dec 2013 14:32:27 +0000 (12:32 -0200)
share/hydractl/upgrade

index d0ccde98fa76d38e1d3b6ce0bf6ae9beacbc287d..5a2f59714a0be44b2b4772ed1e976573c94b24e3 100755 (executable)
@@ -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