Skip to content

Commit d690e1d

Browse files
authored
Merge pull request #155 from linuxserver/format
Format shell scripts
2 parents b860952 + 0752ff3 commit d690e1d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

root/etc/cont-init.d/50-config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
23

34
if [ -d /app/www-tmp ]; then
45
echo "New container detected. Setting up app folder and fixing permissions."
@@ -123,7 +124,7 @@ fi
123124

124125
# check for the mysql endpoint
125126
echo "Waiting for DB to be available"
126-
END=$((SECONDS+30))
127+
END=$((SECONDS + 30))
127128
while [[ ${SECONDS} -lt ${END} ]] && [[ -n "${DB_HOST+x}" ]]; do
128129
if [[ $(/usr/bin/nc -w1 "${DB_HOST}" "${DB_PORT}" | tr -d '\0') ]]; then
129130
if [[ -n "${RUN}" ]]; then

root/etc/services.d/memcached/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
3+
24
exec memcached -u abc

root/migrations/02-default-location

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
23

34
DEFAULT_CONF="/config/nginx/site-confs/default.conf"
45
OLD_ROOT="root /var/www/html/public;"
56
NEW_ROOT="root /app/www/public;"
67

7-
if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}";then
8+
if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}"; then
89
echo "updating root in ${DEFAULT_CONF}"
910
sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}"
1011
fi

0 commit comments

Comments
 (0)