Development

jq: get property value without quotes

by default, jq gives you the value of a string json property within quotes. To avoid that the “-r” option is applied https://stackoverflow.com/questions/44656515/how-to-remove-double-quotes-in-jq-output-for-parsing-json-files-in-bash

Read More »

exit when curl fails

I wanted curl to fail when it thorugh a request error above 400. but it was’nt. $? was not giving me a error code above 0. so the only way I can tell if a error was thrown is if I combed the string for a particular pattern. but then[…]

Read More »

Another way to write condition

https://stackoverflow.com/questions/11038590/a-way-to-do-multiple-statements-per-bash-test-statement Not recommended. ran into issue in terms of status being set to a value above 0

Read More »

Publishing a npm package

Not Found – PUT https://gitlab.selectiont.com/api/v4/packages/npm/@werm-bash%2fscripts-root – 404 Not Found create a package.json and this code this line references a gitlab project we access tokens so we don’t have to login to publish. we can create tokens at the project level or the instance level. Lets create one at the project[…]

Read More »