Skip to content

Commit

Permalink
GRP-3779: gsh script in container with error doesn't exit with non-zero
Browse files Browse the repository at this point in the history
  • Loading branch information
credman committed Jan 24, 2022
1 parent 45869e8 commit 12cd782
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions container_files/usr-local-bin/gsh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ runCommand_unsetAll

export GSH_JVMARGS="$GSH_JVMARGS -DENV=$ENV -DUSERTOKEN=$USERTOKEN"

# capture result of gsh, not tee
set -o pipefail

# openshift cannot do whoami
if [ "$GROUPER_GSH_CHECK_USER" = "true" ] && [ "$GROUPER_GSH_USER" != "$(whoami)" ]
then
Expand Down

0 comments on commit 12cd782

Please sign in to comment.