aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcopy-item-to-kobo7
1 files changed, 7 insertions, 0 deletions
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 <<EOC