Closed Artoria2e5 closed 1 year ago
Bai, try to run a basic self-build check..
rebased. still recommending pull --rebase=preserve origin data
.
Well, OK, f that, I forgot to check the args in arch/_common.
Since the flags are exported into ENV in the traditional sloppy way anyway, there is no point in array-izing it for now.
How is this PR now?
Changes required for merging should be still obvious.
Oh. The flags internal part (nolto, usexxx etc) needs some data sanitization too.
lmao this isn't going anywhere. Anyways, just came up with these snippets:
is_array() { [[ $(declare -p $1) == 'declare -'[aA]* ]]; }
to_array() {
declare -n ref=$1
mapfile -d ' ' -t $1< <(printf %s "$ref")
}
check_type_array() {
if ! is_array "$1"; then
ab_warn "$1 should be an array now! splitting."
to_array "$1"
fi
}
This has stalled for way too long and requires quite a bit of work still. Let's resurrect this when we feel up for it.
62