local/bin/homesync: Fallback on non-fstab drive when there is no fstab result.
parent
4e64e16486
commit
ff266bed93
|
@ -22,6 +22,7 @@ EOF
|
|||
OPT_UPDATE=false
|
||||
OPT_DEVICE=""
|
||||
OPT_DATAROOT=$(findmnt -n --fstab --output TARGET | grep ^/media/)
|
||||
[ -z "$OPT_DATAROOT" ] && OPT_DATAROOT=$(findmnt -n --list --output TARGET | grep ^/media/)
|
||||
while getopts ":hd:g:p" opt; do
|
||||
case $opt in
|
||||
h)
|
||||
|
|
Loading…
Reference in New Issue