aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/sync-media
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-10-01 15:35:29 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-10-01 15:35:29 -0300
commit84d059366bb694d200f9f69e8fbacde6558aab67 (patch)
treefeb84f2e7fc4a1393da0a4491536785769ce2286 /share/hydractl/sync-media
parent2f53236f2ea36ffac6e2e80da091574ae6f0d6c6 (diff)
downloadhydra-84d059366bb694d200f9f69e8fbacde6558aab67.tar.gz
hydra-84d059366bb694d200f9f69e8fbacde6558aab67.tar.bz2
Feat: hydractl: sync-media: support for 'local' drive
Diffstat (limited to 'share/hydractl/sync-media')
-rwxr-xr-xshare/hydractl/sync-media3
1 files changed, 2 insertions, 1 deletions
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