fish-shell/build_tools/osx_package_scripts/preinstall

8 lines
245 B
Text
Raw Normal View History

#!/bin/sh -x
echo "Removing any previous installation"
2022-01-23 04:08:32 +00:00
pkgutil --pkg-info ${INSTALL_PKG_SESSION_ID} && pkgutil --only-files --files ${INSTALL_PKG_SESSION_ID} | while read installed
do rm -v ${DSTVOLUME}${installed}
done
echo "... removed"