function mount_afp_volume() { host=HOSTNAME_OR_IPADDRESS username=AFP_USERNAME password=AFP_PASSWORD mount_point=$1 if [ ! -d /Volumes/$mount_point ] then mkdir -p /Volumes/$mount_point mount_afp afp://$username:$password@$host/$mount_point /Volumes/$mount_point /usr/local/bin/terminal-notifier -title "Mount" -message "/Volumes/"$mount_point" is now mounted." -sound Submarine fi } mount_afp_volume
{{#tags}}- {{label}}
{{/tags}}