#!/bin/bash case "$(hostname)" in dstromberg-precision-3530) mount_point=/mymount/movie ;; *) mount_point=/mymount/movie-ssh-read-write ;; esac fusermount -uz "$mount_point" if ! cd "$mount_point" then echo cd failed fi