short version of if statement causes problems

This commit is contained in:
Martin Diehl 2017-05-02 18:15:53 +02:00
parent 9c5c67df1e
commit e8b69b748f
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ stages:
###################################################################################################
before_script:
- [ $(awk "/$CI_PIPELINE_ID/{print NR}" $HOME/GitLabCI.queue)x == 'x' ] && echo $CI_PIPELINE_ID >> $HOME/GitLabCI.queue
- if [ $(awk "/$CI_PIPELINE_ID/{print NR}" $HOME/GitLabCI.queue)x == 'x' ]; then echo $CI_PIPELINE_ID >> $HOME/GitLabCI.queue; fi
- while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $HOME/GitLabCI.queue) -ne 1 ];do sleep 5m; done
- source $DAMASKROOT/DAMASK_env.sh
- cd $DAMASKROOT/PRIVATE/testing