;;
esac
fi
+WC=""
if [ -z $INSTALLERVOL ]; then
- INSTALLERVOL="${APP} Installer"
+ INSTALLERVOL="Install ${APP}"
+ WC="*"
fi
if [ "${GRADLE}" = 1 ]; then
fi
echo "Mounting '$DMG' at /Volumes"
N=0
- MOUNTEDAPP="/Volumes/$INSTALLERVOL/$APP.app"
+ MOUNTEDAPP="/Volumes/$INSTALLERVOL$WC/$APP.app"
echo "Waiting for '$MOUNTEDAPP' to appear"
- while [ \! -e "$MOUNTEDAPP" ]; do
+ while [ "$(ls -1 "/Volumes/$INSTALLERVOL"$WC"/$APP.app" 2>/dev/null)" = "" ]; do
echo -n "."
N=$(( N+1 ))
if [ $N = 40 ]; then
fi
sleep 0.1
done
+ INSTALLERVOL="$(ls -1d "/Volumes/Install Jalview Develop "* 2>/dev/null | head -1)"
+ INSTALLERVOL=${INSTALLERVOL%/}
+ INSTALLERVOL=${INSTALLERVOL#/Volumes/}
+ MOUNTEDAPP="/Volumes/$INSTALLERVOL/$APP.app"
echo ""
else
echo "Problem with gradle build: exit code $?"