RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    making a .sh script in retropie menu

    Scheduled Pinned Locked Moved Help and Support
    scriptretropiemenu
    8 Posts 2 Posters 657 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      compukit
      last edited by

      hi is there sombady ho can tel my how i can get this to work in a .sh file in the retropie menu?
      the comands i try to use are this
      cd /home/pi/LEDSpicer
      git pull
      make
      sudo make install
      bad it wil not work whel the first line isend even working .
      what im i dowing rong ?

      abjA 1 Reply Last reply Reply Quote 0
      • abjA
        abj @compukit
        last edited by

        @compukit

        You can run the commands from the terminal window.
        With the help of a keyboard, while you are in the Emulationstation press the F4 button, this will send you in the terminal window.

        `Please be patient, my English is not very good.`

        C 1 Reply Last reply Reply Quote 0
        • C
          compukit @abj
          last edited by

          @abj i now i can run it from the terminal bad i wanted to make it easyer and selectebal from the optie menu . besical bekose i forget the comands after a time

          abjA 1 Reply Last reply Reply Quote 0
          • abjA
            abj @compukit
            last edited by abj

            @compukit Try this:

            #!/bin/bash
            
            cd /home/pi/LEDSpicer
            git pull
            make
            sudo make install
            

            Save it as LEDSpicer.sh

            Make it executable with

            chmod +x LEDSpicer.sh
            

            `Please be patient, my English is not very good.`

            C 2 Replies Last reply Reply Quote 0
            • C
              compukit @abj
              last edited by

              @abj wel i save it as ledspicer updater.sh and use the chod +x ledspicer updater.sh bad its not working it wond chance the directory using cd in a script.
              bad if the backup is done i gone try to put the #!/bin/bash in it and try it agen

              1 Reply Last reply Reply Quote 0
              • C
                compukit @abj
                last edited by

                @abj nop stil not working i got this erro.

                -bash: ./ledspicer-update.sh: /bin/bash^M: bad interpreter: No such file or directory

                1 Reply Last reply Reply Quote 0
                • abjA
                  abj
                  last edited by

                  I am not sure why it doesn't run, maybe is a formation issue. Try this please : https://ufile.io/k8v6rtui

                  `Please be patient, my English is not very good.`

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    compukit @abj
                    last edited by

                    @abj wird that works :) thnx

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                    Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.