Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions automount-bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fi

declare -A FSTYPE

FSTYPE=( [macfuse]=OK [nodir]='-' [notmounted]='-' )
FSTYPE=( [macfuse]=OK [nfs]=OK [nodir]='-' [notmounted]='-' )
GUID=$( id -g )

for AMD in "${SSH[@]}"; do
Expand All @@ -134,7 +134,7 @@ for AMD in "${SSH[@]}"; do
fi

if [ $TODO = "list" ]; then
if [ ${STAT[0]} = "macfuse" ]; then
if [[ ${STAT[0]} = "macfuse" || ${STAT[0]} = "nfs" ]]; then
printf "%-12s %3s %s on %s\n" ${DST##*/} ${FSTYPE[${STAT[0]}]} ${SRC} ${DST}
else
printf "%-12s %3s %s\n" ${DST##*/} ${FSTYPE[${STAT[0]}]} ${SRC}
Expand All @@ -143,7 +143,7 @@ for AMD in "${SSH[@]}"; do

if [ ${TODO} = "mount" ]; then

if [ ${STAT[0]} != "macfuse" ]; then
if [[ ${STAT[0]} != "macfuse" || ${STAT[0]} != "nfs" ]]; then
if [ ${STAT[0]} = "nodir" ]; then
CMD="mkdir -vp ${DST}"
if [ $SHOW ]; then
Expand All @@ -164,8 +164,8 @@ for AMD in "${SSH[@]}"; do

if [ ${TODO} = "unmount" ]; then

if [ ${STAT[0]} = "macfuse" ]; then
CMD="umount -v ${DST}"
if [[ ${STAT[0]} = "macfuse" || ${STAT[0]} = "nfs" ]]; then
CMD="diskutil unmount ${DST}"
if [ -n "$SHOW" ]; then
echo "${CMD}"
else
Expand Down
10 changes: 5 additions & 5 deletions automount-zsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fi

declare -A FSTYPE

FSTYPE=( [macfuse]=OK [nodir]='-' [notmounted]='-' )
FSTYPE=( [macfuse]=OK [nfs]=OK [nodir]='-' [notmounted]='-' )
GUID=$( id -g )

for AMD in "${SSH[@]}"; do
Expand All @@ -129,7 +129,7 @@ for AMD in "${SSH[@]}"; do
fi

if [ $TODO = "list" ]; then
if [ $STAT = "macfuse" ]; then
if [[ $STAT = "macfuse" || $STAT = "nfs" ]]; then
printf "%-12s %3s %s on %s\n" ${DST##*/} ${FSTYPE[${STAT}]} ${SRC} ${DST}
else
printf "%-12s %3s %s\n" ${DST##*/} ${FSTYPE[${STAT}]} ${SRC}
Expand All @@ -138,7 +138,7 @@ for AMD in "${SSH[@]}"; do

if [ $TODO = "mount" ]; then

if [ $STAT != "macfuse" ]; then
if [[ $STAT != "macfuse" || $STAT != "nfs" ]]; then
if [ "$STAT" = "nodir" ]; then
CMD="mkdir -vp ${DST}"
if [ $SHOW ]; then
Expand All @@ -159,8 +159,8 @@ for AMD in "${SSH[@]}"; do

if [ $TODO = "unmount" ]; then

if [ $STAT = "macfuse" ]; then
CMD="umount -v ${DST}"
if [[ $STAT = "macfuse" || $STAT = "nfs" ]]; then
CMD="diskutil unmount ${DST}"
if [ -n "$SHOW" ]; then
echo "${CMD}"
else
Expand Down