# you can remove this if you do not have options which can have args with spaces or empty.
-verbose=false
+verbose=true
force=false
temp=$(getopt -l help,force,verbose hfv "$@") || usage 1
eval set -- "$temp"
if m umount -R $dir; then
unmounted+=($dir)
else
- if ! kill-dir TERM TERM TERM INT INT HUP HUP; then
+ if ! kill-dir TERM TERM TERM INT INT HUP HUP TERM TERM TERM INT INT HUP HUP; then
if $force; then kill-dir KILL; fi
fi