summaryrefslogtreecommitdiff
path: root/src/install.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-09-28 12:48:11 +0100
committerdavidovski <david@davidovski.xyz>2022-09-28 12:48:11 +0100
commit9019894c1db1a36941c66cfd1a3a557103b7495e (patch)
treee2384ac18c218a627352ccf5a094ec2c7dbb7f28 /src/install.sh
parent31be9f6f20bac11120b8064c5a8ba78e4c713ade (diff)
removed a few external command callsv1.7.5
Diffstat (limited to 'src/install.sh')
-rw-r--r--src/install.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/install.sh b/src/install.sh
index c2505c5..5d3c2e7 100644
--- a/src/install.sh
+++ b/src/install.sh
@@ -2,7 +2,7 @@
extract () {
# keep old files here, so we dont overwrite any configs
- tar -h --keep-old-files -p -vvxf $1 -C ${SYSROOT} 2>${LOG_FILE} | grep -v ^d | tr -s " " | cut -d" " -f6 | cut -c2-
+ tar -h --keep-old-files -p -vvJxf $1 -C ${SYSROOT} 2>${LOG_FILE} | grep -v ^d | tr -s " " | cut -d" " -f6 | cut -c2-
}
install_package () {
@@ -22,10 +22,10 @@ install_package () {
[ ! -d $installed_dir ] && mkdir -p "$installed_dir"
[ -f "$files" ] && {
- for file in $(cat $files); do
+ for read -r file; do
[ -z "${file%%/etc*}" ] ||
rm -f ${SYSROOT}$file
- done
+ done < $files
rm $files
}