Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

repush.sh - line 552: unexpected EOF while looking for matching `"' #14

Closed

Description

@DblA
line 552: unexpected EOF while looking for matching `"'

I suspect the culprit s in creating the epub placeholder.

Commenting that out resulted in some grep help messages and error: "repush: File extension invalid or missing: pump_doc.pdf".

Using script version 3.0 on MacOS 10.14.5.

Activity

  1. self-assigned this
    on May 30, 2019
  2. CTXz commented on May 30, 2019

    @CTXz
    Member

    Sight...

    I could rant for hours about the fragmentation of Unix tools at this point... but plenty of other people have done that for me already.

    This once again seems to be a compatibility issue between Mac and GNU tools.

    Since I do not own a MacOS machine and It could take a little while until I get a MacOS VM set up, you'll have to lend me your hand here.

    Would you mind telling me whether this script produces a epub placeholder in /tmp (on your PC, not the remarkable)? If it doesn't, please paste the error here.

    Thanks

  3. DblA commented on May 30, 2019

    @DblA
    Author

    SIgh indeed.. It is a Mac /GNU compatability issue. The script returns same error with Mac. Using gnu bash from macports port install bash works around the problem, so I suppose this is a low priority issue.

  4. karenerobinson commented on Jan 6, 2020

    @karenerobinson

    Fantastic script!

    My workaround on macos was a bit different as I was hesitant to install a new bash onto my machine. However I will be able to use this for PDFs so am happy.

    • remove the placeholder EPUB function. I will only be able to transfer pdfs.
    • my grep does not have -P for perl. thus I also searched the file for -qP and commented-out
      elif [ -z $is_directory ] && ! echo "$1" | grep -qP "\.pdf$" && ! echo "$1" | grep -qP "\.epub$" ; then
        echo "repush: File extension invalid or missing: $1"
        return 0
    

    possibly related: I can only send files that are .pdf, not .PDF.
    if I send a .PDF file, a blank pdf is created in the root directory on reMarkable with the lower-case filename, and the script seems caught in an infinite loop.

  5. karenerobinson commented on Jan 14, 2020

    @karenerobinson

    btw I run into this using webui_invincibility.sh as well

    webui_invincibility.sh: line 111: unexpected EOF while looking for matching ``'
    webui_invincibility.sh: line 295: syntax error: unexpected end of file
    
  6. added a commit that references this issue on Nov 4, 2020
    ac93463
  7. added a commit that references this issue on Nov 10, 2020
    783fbfc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions