Skip to content

Commit 4ccd3db

Browse files
committed
Pass though environment variables
Adding this flag to sudo will pass existing environment variables to the executed CI command for example `phpunit` Signed-off-by: George Steel <[email protected]>
1 parent 923a8e3 commit 4ccd3db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fi
193193
set +e
194194

195195
echo "Running ${COMMAND}"
196-
sudo -u testuser /bin/bash -c "${COMMAND}"
196+
sudo --preserve-env -u testuser /bin/bash -c "${COMMAND}"
197197
STATUS=$?
198198

199199
set -e

0 commit comments

Comments
 (0)