Closed ell1e closed 2 weeks ago
Hi @ell1e , thanks for reporting this issue. I think the main branch has fixed it. You can use the following commands to patch the latest release and check whether the script works as expect.
curl -L 'https://raw.githubusercontent.com/adonis0147/devel-env/refs/heads/main/toolchain/setup_toolchain.sh' >install_toolchain.sh
curl -L 'https://github.com/adonis0147/devel-env/releases/download/v2024.10/install_toolchain_x86_64.sh' -o - | sed '1,/^# -\*- EOF -\*-$/d' >>install_toolchain.sh
chmod a+x install_toolchain.sh
I am now getting this error, which I assume is what is intended to happen: 48.04 [ ERROR ] 2024-10-29 08:53:55 - Failed to extract the toolchain due to the target directory already exists.
Thanks so much for the fix :heart:
(This project rocks :sunglasses: so I hope those findings are helpful for improving it further)
Running extraction script twice on the same target folder will seemingly confuse it and result in a broken gcc binary.
The toolchain version I tested was this one: https://github.com/adonis0147/devel-env/releases/download/v2024.10/install_toolchain_x86_64.sh
Watch here how I extract it once and it works, then I repeat it and I can no longer run
gcc --help
afterward: