mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Don't checksum symlinks when uninstalling
symlinks are removed separately later. It doesn't really make sense to checksum them - the file they are pointing to could have been deleted.
This commit is contained in:
parent
b42acc6624
commit
1d2836e804
1 changed files with 2 additions and 3 deletions
|
|
@ -141,6 +141,8 @@ uninstall() {
|
|||
if [ -z "$(ls -A "/${file}")" ]; then
|
||||
rmdir "/${file}"
|
||||
fi
|
||||
elif [ -h "${file}" ]; then
|
||||
symlinks="${symlinks} ${file}"
|
||||
else
|
||||
# in some cases we might be uninstalling a file that has already been overwritten
|
||||
# in this case we don't want to remove it
|
||||
|
|
@ -149,9 +151,6 @@ uninstall() {
|
|||
if [ "${in_fs}" = "${in_pkg}" ]; then
|
||||
rm -f "/${file}"
|
||||
fi
|
||||
if [ -h "${file}" ]; then
|
||||
symlinks="${symlinks} ${file}"
|
||||
fi
|
||||
fi
|
||||
done < ../filelist
|
||||
rm -f ../filelist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue