From e7b2de40c6d03f3a5b4fb3906ef826ad169a7cb2 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 30 Jul 2022 18:36:34 +0000 Subject: sysroot is now included in functions themselves --- src/util.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util.sh') diff --git a/src/util.sh b/src/util.sh index 2b7044c..f92e4e3 100644 --- a/src/util.sh +++ b/src/util.sh @@ -86,14 +86,14 @@ prompt_question () { # return if a package is present on the system or not # is_installed() { - [ -f "${INSTALLED_DIR}/$1/checksum" ] + [ -f "${SYSROOT}${INSTALLED_DIR}/$1/checksum" ] } # get the installed checksum of a package ($1) # get_installed_version () { local name=$1 - local file="${INSTALLED_DIR}/$name/checksum" + local file="${SYSROOT}${INSTALLED_DIR}/$name/checksum" [ -f $file ] && cat $file } -- cgit v1.2.1