From 85ebb85e82077a31f9aeac6bea79136001e6be10 Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 7 Aug 2012 17:04:02 +0200 Subject: Use check_utils for apt-get/dpkg. --- base-install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base-install b/base-install index 0871bc4..3e3454a 100755 --- a/base-install +++ b/base-install @@ -13,7 +13,7 @@ DIR=`pwd` # Not logged # Not logged [ "`id -u`" = "0" ] && echo "This script must not be run as root" 1>&2 && exit 1 -check_utils "aptitude git apt-cache dpkg" +check_utils "aptitude apt-get git apt-cache dpkg" echo echo "Base Packages:" @@ -29,8 +29,8 @@ case "$DISTRIB_INFO" in *) PACK_LIST="debian.list";; esac -sudo dpkg --set-selections < "$PACK_LIST" -sudo apt-get -y -u dselect-upgrade +sudo $DPKG --set-selections < "$PACK_LIST" +sudo $APT_GET -y -u dselect-upgrade if [ ! -f $JAVA_CONF ]; then -- cgit v1.2.3