ps2dev / ps2toolchain

This program will automatically build and install a compiler and other tools used in the creation of homebrew software for the Sony PlayStation® 2 videogame system.
BSD 2-Clause "Simplified" License
239 stars 74 forks source link

Adding more scripts in scripts dir makes it fail #59

Open danielt3 opened 4 years ago

danielt3 commented 4 years ago

I recently forked this project in order to provide builds for the toolchain. I added some more scripts to the scripts folder so I can have one single build with everything I need (the toolchain, plus gskit, plus ethernet drivers, plus utilities, etc).

When I reached number 8 in scripts, it started to fail. My script was called 008-gskit, for an example. The problem is that bash evaluates constants starting with 0 (zero) to octal and 008 is not a valid octal number.

There is a workaround: call scripts 001, 002, ..., 007, 010, 011, 012, ..., 017, 020, ... but that's not so good also.

I'm not a bash expert myself but I will give it a try to fix this and send a patch.

HurrieCrane commented 4 years ago

Could you post the error? I've added a script to ./scripts called 008-gskit.sh and I've not had a problem executing it