I'm trying to read a files content into a variable in my .sh.
Some part of the files path is stored in another variable.
This is my current code:
almvers=${cat $CI_PROJECT_DIR/pom-almversion.txt}
But I get this error:
${cat $CI_PROJECT_DIR/pom-almversion.txt}: bad substitution
What am I doing wrong?