7 lines
177 B
Modula-2
7 lines
177 B
Modula-2
|
#!/bin/bash
|
||
|
# must be json as a string, depends on jq
|
||
|
mounted () {
|
||
|
[[ ! $1 ]] && echo no mount point to test && return 2
|
||
|
mountpoint "$1" &> /dev/null && echo yes || return 1
|
||
|
}
|