summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-20 23:40:04 +0800
committerruki <[email protected]>2022-12-20 23:40:04 +0800
commit2aa33d36befec02328950d064f74bc1cc97f81f7 (patch)
treed81791b0ae607e9345fc29f24c360d14f7421fba
parent717831ead1655295513535083cec27ed0bdcda4f (diff)
fix configure for dash
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 34a97833a..a5f25764a 100755
--- a/configure
+++ b/configure
@@ -462,8 +462,9 @@ _dedup() {
# .e.g "hello world hello how are you world" -> hello how are you world
_dedup_reverse() {
local result=""
- local list=$(echo "${1}" | awk '{for (i = NF; i > 0; --i) if (!seen[$i]++) printf $i " "}')
+ local list=""
local item=""
+ list=$(echo "${1}" | awk '{for (i = NF; i > 0; --i) if (!seen[$i]++) printf $i " "}')
for item in ${list}; do
result="${item} ${result}"
done