#!/usr/bin/env bash
set -euo pipefail
if [[ $# -ne 1 ]]; then
  echo "usage: laptop-umount <mount-point>" >&2
  exit 2
fi
if command -v fusermount >/dev/null 2>&1; then
  fusermount -u "$1"
elif command -v umount >/dev/null 2>&1; then
  umount "$1"
else
  echo "No unmount command found" >&2
  exit 1
fi
