Skip to content

Silence shellcheck warnings and other minor improvements#255

Merged
XECDesign merged 1 commit intoRPi-Distro:masterfrom
hhromic:shellcheck
Feb 18, 2019
Merged

Silence shellcheck warnings and other minor improvements#255
XECDesign merged 1 commit intoRPi-Distro:masterfrom
hhromic:shellcheck

Conversation

@hhromic
Copy link
Copy Markdown
Contributor

@hhromic hhromic commented Feb 14, 2019

  • Made more specific shellcheck disables
  • Fixed variable quoting (SC2086,SC2064)
  • Use $* expansion instead of $@ when not using arrays (SC2124)
  • Use cleaner $() syntax instead of back quotes (SC2006)
  • Improved comparator (SC2166)
  • Minor improvements in coding style

Tested clean output using: find -name "*.sh" | xargs -n1 shellcheck -x.

Tested a complete dist build too:

copying results from deploy/
total 3.2G
drwxr-xr-x  5 pi pi 4.0K Feb 14 17:49 .
drwxr-xr-x 13 pi pi 4.0K Feb 14 17:49 ..
drwxr-xr-x  2 pi pi 4.0K Feb 14 17:24 2019-02-14-raspbian-stretch
drwxr-xr-x  2 pi pi 4.0K Feb 14 17:49 2019-02-14-raspbian-stretch-full
-rw-r--r--  1 pi pi 200K Feb 14 17:35 2019-02-14-raspbian-stretch-full.info
-rw-r--r--  1 pi pi 160K Feb 14 17:18 2019-02-14-raspbian-stretch.info
drwxr-xr-x  2 pi pi 4.0K Feb 14 17:12 2019-02-14-raspbian-stretch-lite
-rw-r--r--  1 pi pi  54K Feb 14 17:09 2019-02-14-raspbian-stretch-lite.info
-rw-r--r--  1 pi pi  13K Feb 14 17:49 build.log
-rw-r--r--  1 pi pi 1.9G Feb 14 17:35 image_2019-02-14-raspbian-stretch-full.zip
-rw-r--r--  1 pi pi 352M Feb 14 17:09 image_2019-02-14-raspbian-stretch-lite.zip
-rw-r--r--  1 pi pi 1.1G Feb 14 17:18 image_2019-02-14-raspbian-stretch.zip
pigen_work
Done! Your image(s) should be in deploy/

@hhromic
Copy link
Copy Markdown
Contributor Author

hhromic commented Feb 18, 2019

Rebased/revisited/retested to account for recent commits to master

* Made more specific shellcheck disables
* Fixed variable quoting (SC2086,SC2064)
* Use `$*` expansion instead of `$@` when not using arrays (SC2124)
* Use cleaner `$()` syntax instead of back quotes (SC2006)
* Improved comparator (SC2166)
* Minor improvements in coding style

Tested clean output using: `find -name "*.sh" | xargs -n1 shellcheck -x`.
@XECDesign
Copy link
Copy Markdown
Member

Thanks, much appreciated.

@XECDesign XECDesign merged commit 564f8ef into RPi-Distro:master Feb 18, 2019
@hhromic hhromic deleted the shellcheck branch February 18, 2019 12:54
@hhromic
Copy link
Copy Markdown
Contributor Author

hhromic commented Feb 18, 2019

Happy to help :)

fuji246 pushed a commit to lomorage/pi-gen that referenced this pull request Sep 17, 2019
* Made more specific shellcheck disables
* Fixed variable quoting (SC2086,SC2064)
* Use `$*` expansion instead of `$@` when not using arrays (SC2124)
* Use cleaner `$()` syntax instead of back quotes (SC2006)
* Improved comparator (SC2166)
* Minor improvements in coding style

Tested clean output using: `find -name "*.sh" | xargs -n1 shellcheck -x`.
general-wedge pushed a commit to HQapp/hq-os that referenced this pull request Jan 5, 2020
* Made more specific shellcheck disables
* Fixed variable quoting (SC2086,SC2064)
* Use `$*` expansion instead of `$@` when not using arrays (SC2124)
* Use cleaner `$()` syntax instead of back quotes (SC2006)
* Improved comparator (SC2166)
* Minor improvements in coding style

Tested clean output using: `find -name "*.sh" | xargs -n1 shellcheck -x`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants