]> gitweb.fluxo.info Git - hydra.git/commitdiff
Feat: hydractl: sync-media: support for 'local' drive
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 1 Oct 2023 18:35:29 +0000 (15:35 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 1 Oct 2023 18:35:29 +0000 (15:35 -0300)
share/hydractl/sync-media

index defa443dd51c4a05c445e76b54f7d99a513bab43..a69932e9e68f37b83d71940e4cf6a2514a806952 100755 (executable)
@@ -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