From: Silvio Rhatto Date: Sun, 1 Oct 2023 18:35:29 +0000 (-0300) Subject: Feat: hydractl: sync-media: support for 'local' drive X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=84d059366bb694d200f9f69e8fbacde6558aab67;p=hydra.git Feat: hydractl: sync-media: support for 'local' drive --- diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media index defa443..a69932e 100755 --- a/share/hydractl/sync-media +++ b/share/hydractl/sync-media @@ -164,7 +164,8 @@ if echo $OPTIONS | grep -q -- "--dropunused"; then fi # Set drive config -if [ ! -z "$REMOTE" ]; then +# Ingore drive/volume if it's set to "local" +if [ ! -z "$REMOTE" ] && [ "$REMOTE" != "local" ]; then # Check storage media MOUNT="`mount | grep $VOLUME`" if [ ! -z "$MOUNT" ]; then