Skip to content

Commit 6797f41

Browse files
committed
fix: echo detected root
1 parent 83f6c12 commit 6797f41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hooks/post-command

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ find_root () {
88
log 'It looks like this step was run via Docker Compose.'
99
ROOT=''
1010
if [ -f Dockerfile ]; then
11-
log 'Attempting to parsed Dockerfile'
11+
log 'Attempting to parse Dockerfile'
1212
ROOT="$(awk '/WORKDIR/ {print $2}' Dockerfile | tail -n 1)"
1313
else
1414
log 'No Dockerfile found.'
@@ -17,6 +17,8 @@ find_root () {
1717
if [ "$ROOT" == '' ]; then
1818
log 'Could not determine root from Dockerfile. Assuming "/" for root.'
1919
echo '/'
20+
else
21+
echo "$ROOT"
2022
fi
2123
elif echo "$BUILDKITE_PLUGINS" | grep -q docker-buildkite-plugin; then
2224
log 'It looks like this step was run via Docker.'

0 commit comments

Comments
 (0)