diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-12-24 17:17:16 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-12-24 17:17:16 -0300 |
commit | c3e26af4cefe5399dc896979c27a1f55c91b027c (patch) | |
tree | b5fb83b3f76d48e340b2d9021c10ad28cfa2b5e8 /share/hydractl/sync-media | |
parent | 6de47930b3e31849a33cfc40392379c1e396cf5a (diff) | |
download | hydra-c3e26af4cefe5399dc896979c27a1f55c91b027c.tar.gz hydra-c3e26af4cefe5399dc896979c27a1f55c91b027c.tar.bz2 |
Fix: hydractl: sync-backups/sync-media: minor improvements
Diffstat (limited to 'share/hydractl/sync-media')
-rwxr-xr-x | share/hydractl/sync-media | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media index 8132315..17ee219 100755 --- a/share/hydractl/sync-media +++ b/share/hydractl/sync-media @@ -171,12 +171,16 @@ if echo $OPTIONS | grep -q -- "--dropunused"; then fi # Set drive config -# Ingore drive/volume if it's set to "local" +# Ignore drive/volume if it's set to "local" if [ ! -z "$REMOTE" ] && [ "$REMOTE" != "local" ] && [ "$REMOTE" != "localhost" ]; then # Check storage media MOUNT="`mount | grep $VOLUME`" + if [ ! -z "$MOUNT" ]; then DRIVE="$(basename `echo $MOUNT | awk '{ print $1 }'`)" + #else + # echo "$BASENAME: volume $MEDIA is not mounted" + # exit 1 fi fi |