Merge pull request #495 from fosslinux/set-pipefail

Set pipefail when supported
This commit is contained in:
Samuel Tyler 2025-02-03 15:30:43 +11:00 committed by GitHub
commit 736d7967fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 7 deletions

View file

@ -139,6 +139,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
@ -147,9 +149,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