Skip to content
Snippets Groups Projects
Commit 407044d9 authored by Steffen Müthing's avatar Steffen Müthing
Browse files

[dunecontrol] Skip unnecessary parsing of Git option lines into array

As Carsten correctly pointed out, it's easier to just eval the command directly.
parent 4d1af34f
No related branches found
No related tags found
No related merge requests found
......@@ -379,8 +379,7 @@ run_default_vcsetup() {
# Filter out comments
local COMMENT="$(echo $REPLY | $GREP '^#')"
if [ ! "x$COMMENT" = "x$REPLY" ]; then
eval local GIT_ARGS=($REPLY)
git config "${GIT_ARGS[@]}"
eval git config $REPLY
fi
done
echo "done"
......@@ -394,8 +393,7 @@ run_default_vcsetup() {
# Filter out comments
local COMMENT="$(echo $REPLY | $GREP '^#')"
if [ ! "x$COMMENT" = "x$REPLY" ]; then
eval local GIT_ARGS=($REPLY)
git config "${GIT_ARGS[@]}"
eval git config $REPLY
fi
done
echo "done"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment