Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence shellcheck warnings and other minor improvements #255

Merged
merged 1 commit into from
Feb 18, 2019

Conversation

hhromic
Copy link
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
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
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
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