18 lines
164 B
Bash
18 lines
164 B
Bash
#!/syntax/bash
|
|
|
|
err() {
|
|
printf '%s\n' "$*" >&2
|
|
}
|
|
|
|
msg() {
|
|
printf '%s\n' "$*"
|
|
}
|
|
|
|
set_default() {
|
|
declare -n _vref=$1
|
|
|
|
if ! [[ "$_vref" ]]; then
|
|
_vref=$2
|
|
fi
|
|
}
|