launchrctl / launchr

Launchr is a CLI action runner that executes actions inside short-lived local containers.
Apache License 2.0
10 stars 2 forks source link

Stdout of executed action not caught by tee #21

Closed davidferlay closed 8 months ago

davidferlay commented 8 months ago

Context

Consider the log file of build command is generated by | tee by command like: set -o pipefail && ./plasmactl platform:build ${PLASMA_BUILD_ENV} ${PLASMA_BUILD_RESOURCES} --pw-base64 "${PLASMA_BUILD_PW_BASE64}" --use-volume-wd --remove-image | tee ${BUILD_LOG_FILE} && set +o pipefail

Observed

Expected

Todo

I see a different solutions possible :

I have a preference for last solution as it can be useful in other cases