Random Script - Creating valid shell script files

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
Dandy J
Posts: 2
Joined: Mon Jan 06, 2025 7:16 pm
Has thanked: 1 time

Random Script - Creating valid shell script files

Unread post by Dandy J »

Howdy gamers,

I'm trying to create filter scripts for wizzomafizzo's Random script here:
https://github.com/wizzomafizzo/mrext/b ... /random.md

  • The base script itself works w/ no issues
  • When attempting to create custom launcher scripts as outlined at the bottom of the page, I get the following error when running any of them (using the example from the GitHub page):

    Code: Select all

    /media/fat/Scripts/random_psx.sh: line 2: random.sh: command not found

I was getting a "bad interpreter" error beforehand due to creating the files in Windows Notepad, but now I'm just getting the above error after attempting:

  1. Opening the files in Notepad++ and changing the format to Unix
  2. Converting the files using dos2unix
  3. Creating a new .sh file from Desktop mode on Steam Deck (using Kate), then transferring the file directly to the SD card

Do I need to create these files using a specific tool? I feel like I'm missing something obvious here.

Cheers

jnols
Posts: 12
Joined: Fri Nov 15, 2024 5:08 pm
Been thanked: 1 time

Re: Random Script - Creating valid shell script files

Unread post by jnols »

Did you check to see if line 2 is calling the random.sh? If so, make sure it's pointing to the correct path of random.sh. For example if your random.sh is in the same directory as the _psx one, you would call it like this:

./random.sh

Or use the absolute path
/media/fat/Scripts/random.sh

Dandy J
Posts: 2
Joined: Mon Jan 06, 2025 7:16 pm
Has thanked: 1 time

Re: Random Script - Creating valid shell script files

Unread post by Dandy J »

That was it, thank you!

Post Reply