Skip to content

Commit

Permalink
Merge pull request #21 from supernifty/official
Browse files Browse the repository at this point in the history
support updating of non-string config variables by install.sh script
  • Loading branch information
ssadedin committed May 31, 2015
2 parents 349dec4 + 7d4feb9 commit bf93c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function set_config_variable() {
NAME="$1"
VALUE="$2"
cp "$BASE/pipeline/config.groovy" "$BASE/pipeline/config.groovy.tmp"
sed 's,'^[\s]*$NAME'=".*$,'$NAME'="'$VALUE'",g' $BASE/pipeline/config.groovy.tmp > "$BASE/pipeline/config.groovy" || err "Failed to set configuration variable $NAME to value $VALUE"
sed 's,'^[\s]*$NAME'=\("\?\).*$,'$NAME'=\1'$VALUE'\1,g' $BASE/pipeline/config.groovy.tmp > "$BASE/pipeline/config.groovy" || err "Failed to set configuration variable $NAME to value $VALUE"
rm "$BASE/pipeline/config.groovy.tmp"
load_config
}
Expand Down

0 comments on commit bf93c65

Please sign in to comment.