local/bin/homesync: Fallback on non-fstab drive when there is no fstab result.

master
Pierre Neidhardt 2020-04-26 22:14:22 +02:00
parent 4e64e16486
commit ff266bed93
1 changed files with 1 additions and 0 deletions

View File

@ -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)