#!/bin/bash

APP_LOCATION="$(dirname $0)/.."
if [ "${APP_LOCATION}" == "./.." ]; then
      APP_LOCATION="$(pwd)/.."
fi

echo "This is wrapper script for Mac OS X elfCLOUD-FUSE. Binary is located: '${APP_LOCATION}/Resources/bin/elfcloud-fuse'"

${APP_LOCATION}/Resources/bin/elfcloud-fuse ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8}


#!/bin/bash

APP_LOCATION="$(dirname $0)/.."
if [ "${APP_LOCATION}" == "./.." ]; then
      APP_LOCATION="$(pwd)/.."
fi

if [ "${1}" = "" ]; then
  echo "usage: ${APP_LOCATION}/Resources/bin/elfcloud-fuse your@domain.fi /your/mount/point"

  DIALOG_TEXT="Currently elfCLOUD-FUSE doesn't have GUI for mounting.\nPlease use this application from commandline:\n${APP_LOCATION}/Resources/bin/elfcloud-fuse your@domain.fi /your/mount/point"

  osascript -e 'tell application "Finder"' -e 'activate' -e "display dialog \"${DIALOG_TEXT}\"" -e 'end tell' > /dev/null

  exit 1
fi

echo "This is wrapper script for Mac OS X elfCLOUD-FUSE. Binary is located: '${APP_LOCATION}/Resources/bin/elfcloud-fuse'"

${APP_LOCATION}/Resources/bin/elfcloud-fuse ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8}


Make user sure that he/she understand there is no GUI for Mac OS X elfCLOUD-FUSE with bouncing dialog to tell that
Make user sure that he/she understand there is no GUI for Mac OS X elfCLOUD-FUSE with bouncing dialog to tell that
