This repository was archived by the owner on Apr 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ IFS="|" read -r -a CLI_OPTIONS <<< "$CLI_OPTIONS_STRING"
5
5
cd / || exit 1
6
6
7
7
# halt startup if no config file is found
8
- if [[ -n ${PMM_CONFIG} ]]; then
9
- CONFIG_FILE=${PMM_CONFIG}
8
+ if [[ -n " ${PMM_CONFIG}" ]]; then
9
+ CONFIG_FILE=" ${PMM_CONFIG}"
10
10
elif echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--config|-c)([\s])(.+\/[^\/]+)\.(yml|yaml)'; then
11
11
CONFIG_FILE=$(echo "${CLI_OPTIONS[@]}" | grep -Po '([\s]|^)(--config|-c)([\s])\K(.+\/[^\/]+)\.(yml|yaml)')
12
12
else
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ IFS="|" read -r -a CLI_OPTIONS <<< "$CLI_OPTIONS_STRING"
5
5
cd / || exit 1
6
6
7
7
# halt startup if no config file is found
8
- if [[ -n ${PMM_CONFIG} ]]; then
9
- CONFIG_FILE=${PMM_CONFIG}
8
+ if [[ -n " ${PMM_CONFIG}" ]]; then
9
+ CONFIG_FILE=" ${PMM_CONFIG}"
10
10
elif echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--config|-c)([\s])(.+\/[^\/]+)\.(yml|yaml)'; then
11
11
CONFIG_FILE=$(echo "${CLI_OPTIONS[@]}" | grep -Po '([\s]|^)(--config|-c)([\s])\K(.+\/[^\/]+)\.(yml|yaml)')
12
12
else
Original file line number Diff line number Diff line change 2
2
3
3
IFS="|" read -r -a CLI_OPTIONS <<< "$CLI_OPTIONS_STRING"
4
4
5
- if [[ $(tr "[:upper:]" "[:lower:]" <<<"${PMM_RUN}") = "true" ]] || echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--run|-r )([\s]|$)'; then
5
+ if [[ $(tr "[:upper:]" "[:lower:]" <<<"${PMM_RUN}") = "true" ]] || echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--run|--tests|--run-tests|--run-collections|--run-libraries|--run-metadata-files|--resume|-r|-rm|-rl|-rc|-rt|re )([\s]|$)'; then
6
6
rm -rf /etc/s6-overlay/s6-rc.d/svc-pmm
7
7
rm -rf /etc/s6-overlay/s6-rc.d/user/contents.d/svc-pmm
8
8
rm -rf /etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-pmm-config
You can’t perform that action at this time.
0 commit comments