From b3f702d99f1ffe11c65f916513f7b47acb772cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Rigo?= Date: Wed, 10 Feb 2021 21:10:24 +0100 Subject: [PATCH] Fixes for reMarkable 2, from issue #31 --- host/repush.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/repush.sh b/host/repush.sh index f1c2716..2fe5f7a 100755 --- a/host/repush.sh +++ b/host/repush.sh @@ -335,7 +335,7 @@ function push { directory="" fi - placeholder_basename="$(basename "$1")" + placeholder_basename="$(basename "$1" ".$extension")" # Since the WebUI doesn't accept directories, we're creating a PDF placeholder # fs entry, who's metadata we'll then alter to that of a directory fs entry @@ -525,7 +525,7 @@ fi # Check if file with same name already exists in the root directory for f in "$@"; do - uuid_of_root_file "$(basename "$f")" + uuid_of_root_file "$(basename "$f" "${f##*.}")" if [ ! -z $RET_UUID ]; then echo "repush: Cannot push '$f': File already exists in root directory"