Skip to content

Commit a7ec00d

Browse files
committed
Remove default options from this PR's scope
1 parent 301cc9c commit a7ec00d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

build/wiki-command-replacer.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ cd "$(dirname "$0")/.."
77
MARKER_START='{{COMMAND-OUTPUT "'
88
MARKER_END='"}}'
99
ALLOWED_COMMANDS=("phpcs" "phpcbf")
10-
DEFAULT_OPTIONS=("--parallel=1" "--no-cache" "--no-colors" "--report-width=100")
1110

1211
tokenize_command() {
1312
read -ra TOKENS <<< "$1"
@@ -32,16 +31,12 @@ validate_tokens() {
3231
done
3332
}
3433

35-
add_default_options() {
36-
EXECUTABLE_COMMAND=("${TOKENS[0]}" "${DEFAULT_OPTIONS[@]}" "${TOKENS[@]:1}")
37-
}
38-
3934
execute_command() {
4035
tokenize_command "$1"
4136
check_allowed_commands
4237
validate_tokens
43-
add_default_options
4438

39+
EXECUTABLE_COMMAND=("${TOKENS[0]}" "${TOKENS[@]:1}")
4540
echo >&2 " INFO: running: " "${EXECUTABLE_COMMAND[@]}"
4641
"${EXECUTABLE_COMMAND[@]}"
4742
}

0 commit comments

Comments
 (0)