-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Version and not able to test the Url's #25
Comments
It's just telling us to upgrade the version and not letting us test the scripts |
Hi @pridhviraj2602 - and apt update in Ubuntu will pull 1.6. In my local Ubuntu machine, I had to manually download 1.7.1 to make it work. |
@dlamotta |
Yep, looks like it wasn't handling if jq didn't return a tertiary version (i.e. 1.7.0). I'm working on a PR to handle it and should have it done by EOD. Thanks @linziee |
@dlamotta Check that jq is at version 1.7.0 or abovejq_ver=$(jq -V | grep -o '[0-9]+.[0-9]+' | head -1) if [[ "$jq_ver_major" -lt 1 ]] || { [[ "$jq_ver_major" -eq 1 ]] && [[ "$jq_ver_minor" -lt 7 ]]; }; then |
@linziee
On my linux box, grep -o '[0-9]+.[0-9]+' isn't producing output unless
I drop the '+'. it might be a difference in how grep is implemented
between our two machines.
It might be simpler just to use cut:
jq_ver_major=`jq -V | cut -f2 -d- | cut -d. -f1`
jq_ver_minor=`jq -V | cut -f2 -d- | cut -d. -f2`
if [[ "$jq_ver_major" -lt 1 ]] || { [[ "$jq_ver_major" -eq 1 ]] && [[
"$jq_ver_minor" -lt 7 ]]; }; then
echo "jq version is below version 1.7, please upgrade to version 1.7
before continuing"
exit 1
fi
…
|
root@eric-VirtualBox:/home/eric/Documents/CustomerSuccess-main/tools# apt upgrade jq
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
jq is already the newest version (1.6-2.1ubuntu3).
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
imagemagick libopenexr25 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6
imagemagick-6.q16 libmagickcore-6.q16-6 imagemagick-6-common libde265-0
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
libfprint-2-2
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@eric-VirtualBox:/home/eric/Documents/CustomerSuccess-main/tools# ./klcr.sh -i envs.json -o ./xc
jq version is below version 1.7, please upgrade to version 1.7 before continuing
The text was updated successfully, but these errors were encountered: