yq generate config.json with the --help content and stop
While trying to run the script .run-seedbox.sh on a newly installed debian system, all prerequisites done the script run-seedbox.sh stopped at the comment
"[./run-seedbox.sh] ***** Checking environment variables and files... ***** ********** Check of variables commands done ************"
and was doing nothing more. I checked the line where it stopped and try to run the problematic command :
yq eval -o json config.yaml > config.json
and the .json generated is the content of the yq --help and jq --help.
In that help documentation I do not find the explanation for "-o" option. Is it because I'm using the newest version of yq and that option has been replaced ? To be able to manually set the right option, what was the -o for ?
Thanks and great job btw putting all this together !
Hello,
Are you sure you're using the v4 version of yq?
In order to check it, please execute:
yq --version
In previous versions, CLI arguments were not the same, so the script won't work with it.
Indeed, thank you for this. I installed yq with ap and the version display clearly show the error with that version:
yq 0.0.0
I will try to remove this one and install the correct version manually. Thank's !