databuild/databuild/runtime/simple_executable_wrapper.sh.tpl
Stuart Axelbrooke c72e122975
Some checks are pending
/ setup (push) Waiting to run
Implement single target strategy
2025-06-29 20:08:21 -07:00

15 lines
306 B
Smarty
Executable file

#!/bin/bash
set -e
%{RUNFILES_PREFIX}
%{PREFIX}
EXECUTABLE_BINARY="$(rlocation "_main/$(basename "%{EXECUTABLE_PATH}")")"
# Run the configuration
if [[ -n "${EXECUTABLE_SUBCOMMAND:-}" ]]; then
exec "${EXECUTABLE_BINARY}" "${EXECUTABLE_SUBCOMMAND}" "$@"
else
exec "${EXECUTABLE_BINARY}" "$@"
fi