Quotidien Shaarli
03/02/23
Error in subbash :
export extractor_version=$(cd extractor; mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
result in output contains colors output :
1.0'$'\033''[0m.tar.gz'
Remove it with :
./somescript | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2};?)?)?[mGK]//g"