#!/bin/bash
# Preupgrade script for HOBOware installer
#
echo "" >> ~/HOBOwareInstall.txt
echo "preupgrade script" >> ~/HOBOwareInstall.txt
echo "" >> ~/HOBOwareInstall.txt
echo "Path to installer: $1" >> ~/HOBOwareInstall.txt
echo "Path to install destination: $2" >> ~/HOBOwareInstall.txt
echo "Root of destination volume: $3" >> ~/HOBOwareInstall.txt
echo "Root of System: $4" >> ~/HOBOwareInstall.txt
echo "Scratchpad area used by installer at $INSTALLER_TEMP" >> ~/HOBOwareInstall.txt

source "${1%/}/Contents/Resources/OnsetPreFunctions" "$@" "$INSTALLER_TEMP"
exit $?
