diff options
Diffstat (limited to 'files')
-rw-r--r-- | files/core-functions.sh | 8 | ||||
-rw-r--r-- | files/slackpkg | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/files/core-functions.sh b/files/core-functions.sh index ba505cb..0db3ffe 100644 --- a/files/core-functions.sh +++ b/files/core-functions.sh @@ -151,12 +151,12 @@ function system_setup() { fi done - TEMPLATEDIR=${ROOT}/$CONF/templates + TEMPLATEDIR=$CONF/templates if [ ! -d $TEMPLATEDIR ]; then mkdir $TEMPLATEDIR fi - SLACKCFVERSION=$(grep "# v[0-9.]\+" ${ROOT}/$CONF/slackpkg.conf | cut -f2 -dv) + SLACKCFVERSION=$(grep "# v[0-9.]\+" $CONF/slackpkg.conf | cut -f2 -dv) CHECKSUMSFILE=${ROOT}/${WORKDIR}/CHECKSUMS.md5 KERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null) DIALOG_MAXARGS=${DIALOG_MAXARGS:-19500} @@ -644,7 +644,7 @@ function makelist() { for ARGUMENT in $(echo $INPUTLIST); do for i in $(cat ${TMPDIR}/pkglist ${TMPDIR}/tmplist | \ grep -w -- "${ARGUMENT}" | cut -f2 -d\ | sort -u); do - grep -qx "${i}" ${ROOT}/${CONF}/blacklist || LIST="$LIST $i" + grep -qx "${i}" ${CONF}/blacklist || LIST="$LIST $i" done done ;; @@ -1232,7 +1232,7 @@ function sanity_check() { FILES="$(diff $TMPDIR/list1 $TMPDIR/list2 | grep '<' | cut -f2 -d\ )" if [ "$FILES" != "" ]; then for i in $FILES ; do - grep -qx "${i}" ${ROOT}/${CONF}/blacklist && continue + grep -qx "${i}" ${CONF}/blacklist && continue DOUBLEFILES="$DOUBLEFILES $i" done unset FILES diff --git a/files/slackpkg b/files/slackpkg index bbc3001..52f8c9b 100644 --- a/files/slackpkg +++ b/files/slackpkg @@ -66,8 +66,8 @@ SOURCE=$(sed -n ' \@^cdrom://@p \@^local://@p \@^https\{0,1\}://@p - \@^ftps\{0,1\}://@p' ${ROOT}/$CONF/mirrors) -. ${ROOT}/$CONF/slackpkg.conf + \@^ftps\{0,1\}://@p' $CONF/mirrors) +. $CONF/slackpkg.conf ERROR="" # Set temporary directory @@ -466,7 +466,7 @@ case "$CMD" in # all blacklisted packages if [ "$INPUTLIST" = "" ]; then echo -e "Packages in blacklist:\n" - grep -e "^\([a-z]\)" ${ROOT}/$CONF/blacklist | $MORECMD + grep -e "^\([a-z]\)" $CONF/blacklist | $MORECMD cleanup fi |