Paisseon/SatellaJailed

[*] Error: OS is unknown or unsupported

Closed this issue · 6 comments

Hey sir i really appreciate your work <3
When i run the command ( sh patch.sh -v 15 ) i get this

[] Unzipping Orion 14-15 framework...
[
] Checking dependencies...
[*] Error: OS is unknown or unsupported

NOTE : Iam using WSL Linux (Ubuntu) on Windows 10

What does it say if you run echo $OSTYPE ?

Same problem actually. I'm using Cutefish (The Ubuntu version, not the Manjaro one), so I just assumed that was the problem. echo $OSTYPE gives me "linux-gnu"

If I remove the OS check then I end up getting a "patch.sh: 93: Bad substitution" error and the script exits. I believe the error is in reference to ipa="$file" on (the new) line 93.

Hey Bryce! 👋

I think the problem is likely with string indexing, which apparently doesn't work with some shells. Changing the hashbang to use bash might fix it, but I'll see if I can find a more POSIX-compliant way of checking for "_Patched.ipa"

Not quite sure why linux-gnu isn't being caught by the "linux-gnu*" case though

Ok figured it out. Ubuntu uses bash, but a script calling for #!/bin/sh will use dash, and thus not support $OSTYPE. Changing to bash should definitely fix this. Still gonna look for a POSIX-compliant method though