Skip to content

Commit 1c4f9e6

Browse files
committed
Linting: shfmt (3)
1 parent ed6308c commit 1c4f9e6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

logging/bin/onboard.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ createuser=false
4040
POS_PARMS=""
4141

4242
while (("$#")); do
43+
# shellcheck disable=SC2221,SC2222
4344
case "$1" in
4445
-ns | --namespace)
4546
if [ -n "$2" ] && [ "${2:0:1}" != "-" ]; then
@@ -218,7 +219,9 @@ if [ "$createuser" == "true" ]; then
218219
log_warn "You can create a new user with the appropriate access controls by calling the logging/bin/user.sh script directly."
219220
else
220221
if [ -z "$tenant" ]; then
222+
set -x
221223
./logging/bin/user.sh CREATE -ns "$namespace" -u "$inituser" "$passwdarg"
224+
set +x
222225
else
223226
./logging/bin/user.sh CREATE -ns "$namespace" -t "$tenant" -u "$inituser" "$passwdarg"
224227
fi

logging/bin/remove_eventrouter.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cp -R logging/eventrouter/eventrouter.yaml "$logDir"/eventrouter.yaml
1717

1818
# Replace placeholders
1919
log_debug "Replacing logging namespace for files in [$logDir]"
20-
v4m_replace "__LOG_NS__" "$LOG_NS" "$logDir"/eventrouter.yaml
20+
v4m_replace "__LOG_NS__" "$LOG_NS" "$logDir"/eventrouter.yaml
2121

2222
log_info "Removing Event Router [$(date)]"
2323
# Remove existing instance of Event Router in the kube-system namespace (if present).

logging/bin/user.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ set -e
5151
POS_PARMS=""
5252

5353
while (("$#")); do
54+
# shellcheck disable=SC2221,SC2222
5455
case "$1" in
5556
-ns | --namespace)
5657
if [ -n "$2" ] && [ "${2:0:1}" != "-" ]; then
@@ -120,7 +121,7 @@ if [ "$#" -lt 1 ]; then
120121
show_usage
121122
exit 1
122123
else
123-
action=$(echo "$1" | tr '[a-z]' '[A-Z]')
124+
action=$(echo "$1" | tr 'a-z' 'A-Z')
124125
shift
125126

126127
if [ "$action" != "CREATE" ] && [ "$action" != "DELETE" ]; then

0 commit comments

Comments
 (0)