Attempt to trim the trailing \r

This commit is contained in:
Justin 2018-05-21 17:42:01 -04:00
parent aae249cd6f
commit 547aa33b2b

View File

@ -7,10 +7,11 @@ echo Sleep for 30 seconds to ensure all services are running
sleep 30
echo Initalize test token and user
PERSONAL_ACCESS_TOKEN="$(gitlab-rails r /init/test.rb)"
PERSONAL_ACCESS_TOKEN="$(gitlab-rails r /init/test.rb | tr -d '\r')"
GITLAB_URL=$(echo "http://localhost:$EXTERNAL_PORT" | tr -d '\r')
echo "export PERSONAL_ACCESS_TOKEN=$PERSONAL_ACCESS_TOKEN" >> ~/.profile
echo "export GITLAB_URL=http://localhost:$EXTERNAL_PORT" >> ~/.profile
echo "export GITLAB_URL=$GITLAB_URL" >> ~/.profile
echo Tail and wait
gitlab-ctl tail&