From ff266bed9352bbd190a3594de8cb946d42633688 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Sun, 26 Apr 2020 22:14:22 +0200 Subject: [PATCH] local/bin/homesync: Fallback on non-fstab drive when there is no fstab result. --- .local/bin/homesync | 1 + 1 file changed, 1 insertion(+) diff --git a/.local/bin/homesync b/.local/bin/homesync index bfa89dde..52c9f39d 100755 --- a/.local/bin/homesync +++ b/.local/bin/homesync @@ -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)