=================================================================== RCS file: /cvs/openbsd/fw_update/fw_install.sh,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- openbsd/fw_update/fw_install.sh 2021/10/18 00:24:55 1.17 +++ openbsd/fw_update/fw_install.sh 2021/10/18 00:33:07 1.18 @@ -183,9 +183,9 @@ fi # TODO: Check hash for files before deleting - if [ "$installed" ] && [ -e "${PKGDIR}/$installed/+CONTENTS" ]; then - echo "Uninstalling $installed" - cwd=${PKGDIR}/$installed + if [ "$_installed" ] && [ -e "${PKGDIR}/$_installed/+CONTENTS" ]; then + echo "Uninstalling $_installed" + cwd=${PKGDIR}/$_installed set -A _remove -- "${cwd}/+CONTENTS" "${cwd}" @@ -198,7 +198,7 @@ *) set -A _remove -- "$cwd/$c" "${_remove[@]}" ;; esac - done < "${PKGDIR}/$installed/+CONTENTS" + done < "${PKGDIR}/$_installed/+CONTENTS" for _r in "${_remove[@]}" ; do if [ -d "$_r" ]; then