diff options
| author | davidovski <david@davidovski.xyz> | 2022-05-29 00:56:39 +0100 | 
|---|---|---|
| committer | davidovski <david@davidovski.xyz> | 2022-05-29 00:56:39 +0100 | 
| commit | d10fda9cf2cfbc4e010b455b27adc6a2d39477bd (patch) | |
| tree | 53c6efef281f6d0beaeac32a3b93cfd34f8d06d9 /src | |
| parent | a53e2c8081b14125ebf8509d3d087ea2ecf3e03d (diff) | |
fixed infinite install timev1.4.2
Diffstat (limited to 'src')
| -rw-r--r-- | src/install.sh | 5 | 
1 files 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 | 
