File tree 2 files changed +7
-5
lines changed 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ workflows:
281
281
jobs :
282
282
- shellcheck/check :
283
283
name : shellcheck
284
- ignore : SC2086,SC2181
284
+ ignore : SC2086,SC2181,SC2124
285
285
filters :
286
286
tags :
287
287
only : /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
- source ${PG_APP_HOME} /functions
3
+
4
+ # shellcheck source=runtime/functions
5
+ source " ${PG_APP_HOME} /functions"
4
6
5
7
[[ ${DEBUG} == true ]] && set -x
6
8
7
9
# allow arguments to be passed to postgres
8
10
if [[ ${1: 0: 1} = ' -' ]]; then
9
11
EXTRA_ARGS=" $@ "
10
12
set --
11
- elif [[ ${1} == postgres || ${1} == $( which postgres) ]]; then
13
+ elif [[ ${1} == postgres || ${1} == $( command -v postgres) ]]; then
12
14
EXTRA_ARGS=" ${@: 2} "
13
15
set --
14
16
fi
@@ -27,8 +29,8 @@ if [[ -z ${1} ]]; then
27
29
configure_postgresql
28
30
29
31
echo " Starting PostgreSQL ${PG_VERSION} ..."
30
- exec start-stop-daemon --start --chuid ${PG_USER} :${PG_USER} \
31
- --exec ${PG_BINDIR} /postgres -- -D ${PG_DATADIR} ${EXTRA_ARGS}
32
+ exec start-stop-daemon --start --chuid " ${PG_USER} :${PG_USER} " \
33
+ --exec " ${PG_BINDIR} /postgres" -- -D " ${PG_DATADIR} " ${EXTRA_ARGS}
32
34
else
33
35
exec " $@ "
34
36
fi
You can’t perform that action at this time.
0 commit comments