Skip to content

Commit 6d36b0c

Browse files
committed
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.
1 parent 4dcfaf0 commit 6d36b0c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

steps/helpers.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ uninstall() {
141141
if [ -z "$(ls -A "/${file}")" ]; then
142142
rmdir "/${file}"
143143
fi
144+
elif [ -h "${file}" ]; then
145+
symlinks="${symlinks} ${file}"
144146
else
145147
# in some cases we might be uninstalling a file that has already been overwritten
146148
# in this case we don't want to remove it
@@ -149,9 +151,6 @@ uninstall() {
149151
if [ "${in_fs}" = "${in_pkg}" ]; then
150152
rm -f "/${file}"
151153
fi
152-
if [ -h "${file}" ]; then
153-
symlinks="${symlinks} ${file}"
154-
fi
155154
fi
156155
done < ../filelist
157156
rm -f ../filelist

0 commit comments

Comments
 (0)