From: Silvio Rhatto Date: Tue, 30 Apr 2024 01:18:38 +0000 (-0300) Subject: Fix: copy-item-to-kobo: check if item has unspported chars in it's file name X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d580f01e9b0f37466473519206d86355a312e133;p=scripts.git Fix: copy-item-to-kobo: check if item has unspported chars in it's file name --- diff --git a/copy-item-to-kobo b/copy-item-to-kobo index 0650a52..aa751fb 100755 --- a/copy-item-to-kobo +++ b/copy-item-to-kobo @@ -33,6 +33,13 @@ fi show --search "$PATTERN" | while read item; do dirname="`dirname "$item"`" + # Check if item has unspported chars in it's file name + if echo "$item" | grep -q ':'; then + echo "$BASENAME: unsupported character ':' in file name '$item'" + echo "$BASENAME: please rename the file and try again" + exit 1 + fi + echo "Copying $item..." silentSsh $REMOTE <