From fdff38c3ca0b4fcda30a684188e1594cb15385c1 Mon Sep 17 00:00:00 2001 From: slackjeff Date: Thu, 28 Jan 2021 12:49:40 -0300 Subject: [PATCH] remove '/' /var/cache/packages --- files/core-functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/files/core-functions.sh b/files/core-functions.sh index cadf1e7..5cfee65 100644 --- a/files/core-functions.sh +++ b/files/core-functions.sh @@ -896,6 +896,7 @@ function getpkg() { NAMEPKG=${PKGNAME[5]}.${PKGNAME[7]} FULLPATH=${PKGNAME[6]} CACHEPATH=${ROOT}/${TEMP}/${FULLPATH} + CACHEPATH="${CACHEPATH#/}" # Remove / in //var/log/packages # Create destination dir if it isn't there if ! [ -d $CACHEPATH ]; then