mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 12:50:54 +00:00
debug: common: run programs in a way that is compatible with alpine doas-sudo-shim (#53)
doas sudo shim (as used by Alpine) does not support passing through environment variables in the same way that sudo does, therefore use `sh -c` instead. Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
parent
73fd95dbe2
commit
6cef03bffa
@ -28,5 +28,5 @@ build_and_run() {
|
||||
fi
|
||||
RUST_TARGET="$(./hack/build/target.sh)"
|
||||
./hack/build/cargo.sh build ${CARGO_BUILD_FLAGS} --bin "${EXE_TARGET}"
|
||||
exec sudo RUST_LOG="${RUST_LOG}" "target/${RUST_TARGET}/debug/${EXE_TARGET}" "${@}"
|
||||
exec sudo sh -c "RUST_LOG='${RUST_LOG}' 'target/${RUST_TARGET}/debug/${EXE_TARGET}' $*"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user