From 84d059366bb694d200f9f69e8fbacde6558aab67 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 1 Oct 2023 15:35:29 -0300 Subject: Feat: hydractl: sync-media: support for 'local' drive --- share/hydractl/sync-media | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'share/hydractl/sync-media') 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 -- cgit v1.2.3