Skip to content

Commit 2ba3da4

Browse files
committed
WPB-17086: enable debugging for bash commands
1 parent 4b9de1c commit 2ba3da4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

build/build_versions.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22

3-
set -e
3+
set -ex
44
mike="pipenv run mike"
55
CURRENT=$(git branch --show-current)
6-
6+
printenv
77
# using dummy values for user.name and user.email as they are not required for git operations but a requirement for mike to have gh-pages branch
88
git config --local user.name "Wire Docs"
99
git config --local user.email "wire-docs-author@wire.com"
@@ -16,7 +16,7 @@ validate_output() {
1616
local output="$1"
1717
# to get building logs
1818
echo "$output"
19-
# ignoring changelog.md as it is talking about past changes
19+
# Rule: ignoring changelog.md as it is talking about past changes
2020
remaining_warnings=$(echo "$output" | grep -i "WARNING" | grep -v "Doc file 'changelog/changelog.md' contains a link" | awk '{$1=$1};1')
2121

2222
if [ -n "$remaining_warnings" ]; then
@@ -65,9 +65,10 @@ while read -r tag commit; do
6565
existing_tags[$tag]=$commit
6666
done < <($mike list | awk -F '[][]' '{print $1, $2}')
6767

68+
git show-ref
69+
6870
commit=$(git show-ref "refs/tags/${CURRENT_TAG}" | awk '{print $1}')
6971
git checkout ${CURRENT_TAG}
70-
7172
# pull the submodule
7273
git submodule update --init --depth 1 wire-server
7374

0 commit comments

Comments
 (0)