So, this is strange and I'm not sure what is causing it.. (I'm very new to cli stuff)
I have a directory ==> SomeDirectory
I have two jar files ==> original-processor.jar and processor.jar
I am looking to just return processor.jar
and set it as a variable, basically anytime there is an original-* I want to ignore it.
I do the following within EC2 (amazon linux) and it works
JAR_FILE_NAME=$(basename $( find . -maxdepth 1 -type f -name '*original*.jar' -prune -o -name '*.jar' -print))
Output ==> processor.jar
But when i run this exact same command in GitLab's cicd pipeline:
Output ==> original-processor.jar
Does anyone know what the discrepancy could be? Is this the best way to accomplish what I want?
I appreciate any input.