Paisseon / SatellaJailed

Jailed in-app purchase cracker (iOS 12-16)
GNU Affero General Public License v3.0
1.01k stars 100 forks source link

[*] Error: OS is unknown or unsupported #7

Closed Echtar closed 2 years ago

Echtar commented 2 years ago

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

Paisseon commented 2 years ago

What does it say if you run echo $OSTYPE ?

Bryceshaw06 commented 2 years ago

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"

Bryceshaw06 commented 2 years ago

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.

Paisseon commented 2 years ago

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"

Paisseon commented 2 years ago

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

Paisseon commented 2 years ago

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