From d10fda9cf2cfbc4e010b455b27adc6a2d39477bd Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 29 May 2022 00:56:39 +0100 Subject: fixed infinite install time --- src/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/install.sh b/src/install.sh index cfdcdf5..52f0a13 100644 --- a/src/install.sh +++ b/src/install.sh @@ -23,7 +23,8 @@ install_package () { [ -f "$files" ] && { for file in $(cat $files); do - rm -f ${SYSROOT}$file + [ -z "${file%%/etc*}" ] || + rm -f ${SYSROOT}$file done rm $files } @@ -32,7 +33,7 @@ install_package () { # dont overwrite anything in /etc; this is where configs are saved # TODO define which files should be preserved - extract $pkg_file | grep -v '^/etc' > $files + extract $pkg_file > $files [ -f $info_file ] && cp $info_file $info echo $package_checksum > $checksum -- cgit v1.2.1