Skip to content

Commit 7d37ae1

Browse files
committed
build: global debug helpers for coreutils mv/cp/etc
- usage: `mv "${debug_dash_v[@]}" here there` Signed-off-by: Ricardo Pardini <[email protected]>
1 parent 7141565 commit 7d37ae1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ declare -a -g CLI_NON_PARAM_ARGS=()
2727
parse_command_line_arguments "${@}" # which fills the above vars & exports the key=value pairs from cmdline into environment
2828
# From here on, no more $1 ${1} or similar. We've parsed it all into CLI_PARSED_CMDLINE_PARAMS (already exported in environment) or CLI_NON_PARAM_ARGS
2929

30+
## Global debug helpers; to use for coreutils mv/cp/etc; usage: mv "${debug_dash_v[@]}" here there
31+
declare -g -a debug_dash_v=()
32+
if [[ "${DEBUG}" == "yes" ]]; then
33+
debug_dash_v+=("-v")
34+
fi
35+
3036
### Configuration
3137
declare -g HOOK_KERNEL_OCI_BASE="${HOOK_KERNEL_OCI_BASE:-"quay.io/tinkerbell/hook-kernel"}"
3238
declare -g HOOK_LK_CONTAINERS_OCI_BASE="${HOOK_LK_CONTAINERS_OCI_BASE:-"quay.io/tinkerbell/"}"

0 commit comments

Comments
 (0)