Skip to content

Commit e2e5f21

Browse files
authored
Merge pull request #55 from linuxserver/format
Format shell scripts
2 parents 097d344 + a200367 commit e2e5f21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
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 /app/dokuwiki;"
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)