Move to `/bin/bash` and url update

This commit is contained in:
rwxrob 2021-08-15 16:56:56 -04:00
parent fe973a967d
commit 12ab9206e3
No known key found for this signature in database
GPG Key ID: 1CCACEDD2F65578E
2 changed files with 9 additions and 7 deletions

View File

@ -50,7 +50,8 @@ more powerful, safer, flexible, and performant than POSIX shell or Zsh.
* Use present tense ("outputs" over "will output")
* Prefer "output" and "display" over ~~print~~
* Follow the [naming conventions](#naming-conventions)
* Use the official bash path: `#!/usr/bin/bash`
* Use the official bash path: `#!/bin/bash`
* Use of `#!/usr/bin/bash` is outdated
* Using `#!/usr/bin/env bash` introduces unnecessary risk
* Explicitly export `PATH` in script when possible
* Always check script with [`shellcheck`] before releasing
@ -62,7 +63,7 @@ more powerful, safer, flexible, and performant than POSIX shell or Zsh.
Copyright 2021 Rob Muhlestein <rob@rwx.gg>
Released under Apache-2.0 License
Please mention <https://youtube.com/rwxrob>
Please mention <https://rwxrob.tv>
## Commands
@ -112,5 +113,5 @@ Displays a summary of usage.
----
*Autogenerated Tue Aug 10 09:32:13 PM EDT 2021*
*Autogenerated Sun Aug 15 04:56:38 PM EDT 2021*

View File

@ -1,7 +1,7 @@
#!/usr/bin/bash
#!/bin/bash
# shellcheck disable=SC2016
set -e
# export PATH="/usr/bin:/usr/local/bin" # safer, if you can
# export PATH="/bin:/usr/bin:/usr/local/bin" # safer, if you can
(( BASH_VERSINFO[0] < 4 )) && echo "Bash 4+ required." && exit 1
@ -66,7 +66,8 @@ more powerful, safer, flexible, and performant than POSIX shell or Zsh.
* Use present tense ("outputs" over "will output")
* Prefer "output" and "display" over ~~print~~
* Follow the [naming conventions](#naming-conventions)
* Use the official bash path: `#!/usr/bin/bash`
* Use the official bash path: `#!/bin/bash`
* Use of `#!/usr/bin/bash` is outdated
* Using `#!/usr/bin/env bash` introduces unnecessary risk
* Explicitly export `PATH` in script when possible
* Always check script with [`shellcheck`] before releasing
@ -78,7 +79,7 @@ more powerful, safer, flexible, and performant than POSIX shell or Zsh.
Copyright 2021 Rob Muhlestein <rob@rwx.gg>
Released under Apache-2.0 License
Please mention <https://youtube.com/rwxrob>
Please mention <https://rwxrob.tv>
'