summaryrefslogtreecommitdiff
path: root/src/install.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/install.sh
parentd24c110caab48002edb5a3e2c41876e6e0a7a6ed (diff)
sysroot is now included in functions themselvesv1.7.2
Diffstat (limited to 'src/install.sh')
-rw-r--r--src/install.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/install.sh b/src/install.sh
index 4bbacbe..c2505c5 100644
--- a/src/install.sh
+++ b/src/install.sh
@@ -10,7 +10,7 @@ install_package () {
local name="$2"
local info_file="$pkg_file.info"
- local installed_dir="${INSTALLED_DIR}/$name"
+ local installed_dir="${SYSROOT}${INSTALLED_DIR}/$name"
local info="$installed_dir/info"
local files="$installed_dir/files"
local checksum="$installed_dir/checksum"
@@ -90,7 +90,7 @@ install () {
${VERBOSE} && printf "${BLACK}Requested to install: $@\n${RESET}"
if [ "$#" = "0" ]; then
- packages=$(ls ${INSTALLED_DIR})
+ packages=$(ls ${SYSROOT}${INSTALLED_DIR})
fi
local missing=""
@@ -109,8 +109,8 @@ install () {
${VERBOSE} && printf "${BLACK}installing $name from $package \n${RESET}"
install_package $package $name &
- mkdir -p "${INSTALLED_DIR}/$name/"
- filelist="${INSTALLED_DIR}/$name/files"
+ mkdir -p "${SYSROOT}${INSTALLED_DIR}/$name/"
+ filelist="${SYSROOT}${INSTALLED_DIR}/$name/files"
touch $filelist
files_files="$files_files $filelist"
done