I have a command which works perfectly on my terminal but the same command fails in GitLab ci.
echo Hello >> foo.txt; cat foo.txt | grep "test"; [