From eef14b77699f001239f35c188de656d39b6077c5 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 5 Jan 2026 10:43:02 -0500 Subject: [PATCH] [bin] Update usb-move script --- bin/.bin/usb-move.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/.bin/usb-move.sh b/bin/.bin/usb-move.sh index b6e3c1f..405b918 100755 --- a/bin/.bin/usb-move.sh +++ b/bin/.bin/usb-move.sh @@ -1,13 +1,12 @@ #!/bin/bash set -e -SRC_DIR="/media/username/SANSA" +SRC_DIR="/run/media/powellc/SANSA CLIPZ" DEST_DIR="/home/powellc/var/rockbox/" -FILENAME="scrobbles.tsv" +FILENAME=".scrobbler.log" -WEBDAV_URL="https://box.unbl.ink/cloud/files/var/" +WEBDAV_URL="https://box.unbl.ink/cloud/files/var/rockbox" WEBDAV_USER="colin@unbl.ink" -WEBDAV_PASS="" # Wait a moment to ensure mount is complete sleep 2 @@ -20,8 +19,10 @@ if [ -f "$SRC_DIR/$FILENAME" ]; then mv "$SRC_DIR/$FILENAME" "$DEST_DIR/$NEW_NAME" # Send to WebDAV - curl -s --netrc -T "$LOCAL_PATH" "${WEBDAV_URL}${NEW_NAME}" + curl -s --netrc -T "$DEST_DIR/$NEW_NAME" "${WEBDAV_URL}/${NEW_NAME}" # Notify user curl -s -d "Backed up $FILENAME locally and sent to Webdav" https://ntfy.unbl.ink/life >/dev/null +else + echo "File not found" fi