Skip to content
Snippets Groups Projects
Unverified Commit caba048e authored by Andreas Ziegler's avatar Andreas Ziegler Committed by GitHub
Browse files

Merge pull request #3467 from neocturne/shellcheck2

Shellcheck fixes + enabling of additional lints
parents 6cd474b7 092a086d
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
setup_mode_enable() { setup_mode_enable() {
local enabled="$(uci -q get 'gluon-setup-mode.@setup_mode[0].enabled')" local enabled configured
local configured="$(uci -q get 'gluon-setup-mode.@setup_mode[0].configured')" enabled="$(uci -q get 'gluon-setup-mode.@setup_mode[0].enabled')"
configured="$(uci -q get 'gluon-setup-mode.@setup_mode[0].configured')"
if [ "$enabled" = 1 ] || [ "$configured" != 1 ]; then if [ "$enabled" = 1 ] || [ "$configured" != 1 ]; then
echo '/lib/gluon/setup-mode/rc.d' > /tmp/rc_d_path echo '/lib/gluon/setup-mode/rc.d' > /tmp/rc_d_path
......
#!/bin/sh #!/bin/sh
# shellcheck source=package/gluon-autoupdater/files/lib/gluon/autoupdater/lib.sh
. /lib/gluon/autoupdater/lib.sh . /lib/gluon/autoupdater/lib.sh
......
#!/bin/sh #!/bin/sh
# shellcheck source=package/gluon-autoupdater/files/lib/gluon/autoupdater/lib.sh
. /lib/gluon/autoupdater/lib.sh . /lib/gluon/autoupdater/lib.sh
......
...@@ -17,7 +17,7 @@ find package -type f | while read -r file; do ...@@ -17,7 +17,7 @@ find package -type f | while read -r file; do
is_scriptfile "$file" || continue is_scriptfile "$file" || continue
echo "Checking $file" echo "Checking $file"
shellcheck -f gcc -x -s sh -e SC2039,SC1091,SC2155,SC2034,SC3043,SC3037,SC3057 "$file" shellcheck -f gcc -x -s sh -e SC2039,SC3043,SC3037,SC3057 "$file"
done done
find scripts -type f | while read -r file; do find scripts -type f | while read -r file; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment