refactor: Improve umount and force_unmount functions for better error handling and output formatting
This commit is contained in:
@@ -12,6 +12,8 @@ function unmount() {
|
|||||||
else
|
else
|
||||||
echo "Unmount completed: $1"
|
echo "Unmount completed: $1"
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "$1 is not mounted"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,6 +25,8 @@ function force_unmount() {
|
|||||||
else
|
else
|
||||||
echo "Unmount completed: $1"
|
echo "Unmount completed: $1"
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "$1 is not mounted"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user