From d580f01e9b0f37466473519206d86355a312e133 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 29 Apr 2024 22:18:38 -0300 Subject: Fix: copy-item-to-kobo: check if item has unspported chars in it's file name --- copy-item-to-kobo | 7 +++++++ 1 file changed, 7 insertions(+) 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 <