The right command for a shell script

Hi I am a total new below is my yaml as it stands at the moment.

title: HighlighterPdf
version: 1.0.2
summary: Highiight the text in a Pdf.
description:
        HighlighterPdf  is a free and open source software application that you can use to 
        highlight text in your pdf document. You can select text in a colour of your choice        
        and then save it.
base: core18

confinement: devmode

apps:
 highlighterpdf:
   extensions:
         - gnome-3-28
   command: highlighterpf.sh
   environment:
         JAVA_HOME: $SNAP/usr/lib/jvm/java-11-openjdk-amd64
         PATH: $JAVA_HOME/jre/bin:$PATH
         plugs:
               -home
               -network
               -cups-control
parts:
  highlighterpdf:
       source: https://github.com/gerry136/highligherpdf.git
       plugin: dump```

It is for my program highlighterpdf which is written in java.

The shell script is a simple one line to run the executable jar.

when I run snapcraft on it it comes up with the error message:

"Failed to generate snap metadata: Specified command './highlighterpf.sh' was not found."

Thanks for reading this and any advice you may give me

The problem is the file highlighterpdf.sh is not set executable in your git repository. You should be able to fix this by:

chmod +x highlighterpdf.sh
git add highlighterpdf.sh
git commit
git push

Now your git repository will have the executable bit saved and future clones will include the executable bit on the file. You should be able to build your snap successfully.