From 0ae370f6999121cde6f53d3c25153f577cf94b61 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Thu, 19 Apr 2018 13:55:52 +0200 Subject: [PATCH] Fix bash script --- before_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/before_build.sh b/before_build.sh index 5e61c12..c9b4d16 100755 --- a/before_build.sh +++ b/before_build.sh @@ -10,9 +10,9 @@ for pkg in bob `cat requirements.txt | sed -e '/^\s*#.*/d;/^\s*$/d'`; do git clone --depth 1 ${GITLAB_CHECKOUT_STRATEGY}bob/$pkg doc/$pkg || \ { git -C doc/$pkg reset --hard HEAD && \ git -C doc/$pkg checkout master && \ - git -C doc/$pkg pull } + git -C doc/$pkg pull; } if [[ -n "${CI_COMMIT_TAG}" ]]; then - tag=`git -C doc/$pkg tag -l --sort=v:refname | tail -n 1` + tag=`git -C doc/$pkg tag -l --sort="v:refname" | tail -n 1` git -C doc/$pkg checkout $tag fi done -- GitLab