summaryrefslogtreecommitdiff
path: root/src/util.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-07-30 18:36:34 +0000
committerdavidovski <david@davidovski.xyz>2022-07-30 18:36:34 +0000
commite7b2de40c6d03f3a5b4fb3906ef826ad169a7cb2 (patch)
tree6fbd6b2465552826c740c7efd5c492c865b1bfec /src/util.sh
parentd24c110caab48002edb5a3e2c41876e6e0a7a6ed (diff)
sysroot is now included in functions themselvesv1.7.2
Diffstat (limited to 'src/util.sh')
-rw-r--r--src/util.sh4
1 files changed, 2 insertions, 2 deletions
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
}