Skip to content

Commit 99e0da0

Browse files
committed
use alternative method to parse features
1 parent 47857c6 commit 99e0da0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ install_features() {
2727
if [[ -n "${FEATURES}" ]]; then
2828
echo -e "${PURPLE}Installing features: ${FEATURES}${RESET}"
2929

30+
# ARGS=$(echo "$FEATURES" | awk 'BEGIN{ORS=" "}{for (i=1;i<=NF;i++){print "--feature",$i}}')
3031
ARGS=()
3132
for feature in $(echo $FEATURES); do
32-
ARGS+=("-f" "$feature")
33+
ARGS+=("-f $feature")
3334
done
35+
echo ${ARGS[@]}
3436

35-
echo "${1}" -v self dep sync "${ARGS[@]}"
36-
"${1}" -v self dep sync "${ARGS[@]}"
37+
echo "${1} -v self dep sync ${ARGS[@]}"
38+
"${1}" -v self dep sync ${ARGS[@]}
3739
fi
3840
}
3941

0 commit comments

Comments
 (0)