Skip to content
Snippets Groups Projects
Commit 0ae370f6 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Fix bash script

parent cc1ce0ed
Branches
Tags
No related merge requests found
Pipeline #
...@@ -10,9 +10,9 @@ for pkg in bob `cat requirements.txt | sed -e '/^\s*#.*/d;/^\s*$/d'`; do ...@@ -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 clone --depth 1 ${GITLAB_CHECKOUT_STRATEGY}bob/$pkg doc/$pkg || \
{ git -C doc/$pkg reset --hard HEAD && \ { git -C doc/$pkg reset --hard HEAD && \
git -C doc/$pkg checkout master && \ git -C doc/$pkg checkout master && \
git -C doc/$pkg pull } git -C doc/$pkg pull; }
if [[ -n "${CI_COMMIT_TAG}" ]]; then 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 git -C doc/$pkg checkout $tag
fi fi
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment