making a .sh script in retropie menu
-
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 ? -
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. -
@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
-
@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
-
@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 -
@abj nop stil not working i got this erro.
-bash: ./ledspicer-update.sh: /bin/bash^M: bad interpreter: No such file or directory
-
I am not sure why it doesn't run, maybe is a formation issue. Try this please : https://ufile.io/k8v6rtui
-
@abj wird that works :) thnx
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.