Skip to content

Commit

Permalink
Fixes for reMarkable 2, from issue reHackable#31
Browse files Browse the repository at this point in the history
  • Loading branch information
trou committed Feb 10, 2021
1 parent eeebfba commit b3f702d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions host/repush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit b3f702d

Please sign in to comment.