Make variables lower-case

In order not to have conflicts with the system’s environment variables,
custom variables are conventionally set in lower case.
This commit is contained in:
Patrick Lühne 2017-11-18 21:42:03 +01:00
parent f72d6efd9d
commit 020b9dc7d4
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
2 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,10 @@
## (unreleased) ## (unreleased)
### Internal
- make shell variables lower-case to avoid conflicts with system variables
## 1.0.0 (2017-11-17) ## 1.0.0 (2017-11-17)
Initial release Initial release

View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
LENGTH=${1:-32} length=${1:-32}
cat /dev/urandom | tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?=' | fold -w $LENGTH | head -n 1 | grep -i '[!@#$%^&*()_+{}|:<>?=]' cat /dev/urandom | tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?=' | fold -w $length | head -n 1 | grep -i '[!@#$%^&*()_+{}|:<>?=]'