version 1.17, 2021/10/18 00:24:55 |
version 1.18, 2021/10/18 00:33:07 |
|
|
fi |
fi |
|
|
# TODO: Check hash for files before deleting |
# TODO: Check hash for files before deleting |
if [ "$installed" ] && [ -e "${PKGDIR}/$installed/+CONTENTS" ]; then |
if [ "$_installed" ] && [ -e "${PKGDIR}/$_installed/+CONTENTS" ]; then |
echo "Uninstalling $installed" |
echo "Uninstalling $_installed" |
cwd=${PKGDIR}/$installed |
cwd=${PKGDIR}/$_installed |
|
|
set -A _remove -- "${cwd}/+CONTENTS" "${cwd}" |
set -A _remove -- "${cwd}/+CONTENTS" "${cwd}" |
|
|
|
|
*) set -A _remove -- "$cwd/$c" "${_remove[@]}" |
*) set -A _remove -- "$cwd/$c" "${_remove[@]}" |
;; |
;; |
esac |
esac |
done < "${PKGDIR}/$installed/+CONTENTS" |
done < "${PKGDIR}/$_installed/+CONTENTS" |
|
|
for _r in "${_remove[@]}" ; do |
for _r in "${_remove[@]}" ; do |
if [ -d "$_r" ]; then |
if [ -d "$_r" ]; then |