https://blue-build.org/ logo
"curl: option : blank argument where content is ex...
# questions
f
hello, i started getting an issue recently after doing the
/etc/
migration where for some reason
curl
stopped working my script. [here's the part where it errors in the github action](https://github.com/sernik-tech/member-images/actions/runs/10360992107/job/28680451980#step:2:5128), and [here's the part of the script where i believe it begins to error out](https://github.com/sernik-tech/member-images/blob/main/files/scripts/system-wuzetka.sh#L42). no idea whats happening since this worked fine before, and maybe also if someone could suggest a better way of doing this instead of. however i'm doing it.
a
message has been deleted
g
The problem appears to be at line 50 when you're trying to read Thorium's version. You can see the exact commands that are run by calling
set -x
and then turn it off with
set +x
.
Yes the -/+ are in the right order, that's just bash
f
hmm okay
i'll poke at it later then, still no idea whats happening here
g
Yeah
set -x
is your friend when it comes to debugging a bash script
f
oh. funny
i added that to the script and for some reason it now seems to be Perfectly Fine
guess i'll mark as solved, idk what was happening then for it to act like that
a
message has been deleted
f
this seems to be happening again despite nothing changing and it seemingly being happy before
i'm not completely sure if perhaps the way i'm doing this is just weird (i should find a better way but not entirely sure how) or if curl is just bugged
g
Try `echo`ing the values you get back from curl to see if you're getting the right json you're expecting. This is unfortunately not a bluebuild specific issue so it's not something on our side we can fix. This will just require time debugging it
x
you could also try wget, if that's more reliable for you
f
nevermind . the issue doesn't seem to be curl or anything at fault here - rather, the github repository it fetches releases from marks its beta builds as "latest" so it fails because it tries to grab a specific rpm that doesn't exist for those beta builds . probably should have checked that first
7 Views