Compare commits

...

4 Commits

Author SHA1 Message Date
f20569d2d1
Version bump after release 1.0.1 2017-11-18 21:52:07 +01:00
f5616ba7e9
Version bump for release 1.0.1 2017-11-18 21:52:07 +01:00
020b9dc7d4
Make variables lower-case
In order not to have conflicts with the system’s environment variables,
custom variables are conventionally set in lower case.
2017-11-18 21:45:06 +01:00
f72d6efd9d
Version bump after release 1.0.0 2017-11-18 21:45:06 +01:00
3 changed files with 12 additions and 4 deletions

View File

@ -1,5 +1,13 @@
# Changelog
## (unreleased)
## 1.0.1 (2017-11-18)
### Internal
- make shell variables lower-case to avoid conflicts with system variables
## 1.0.0 (2017-11-17)
Initial release

View File

@ -1,7 +1,7 @@
# Maintainer: Patrick Lühne <patrick@luehne.de>
pkgname=random-password
pkgver=1.0.0
pkgver=1.0.1
pkgrel=1
pkgdesc='Generate random passwords'
arch=('any')
@ -9,7 +9,7 @@ url='https://git.luehne.de/patrick/random-password/'
license=('MIT')
source=('random-password'
'LICENSE.md')
sha512sums=('aa5f9941a3624f7e38f58badca410dc4e7ac90ee1170132fa4326492fdd3737624d57415000e9b32b4c98d24a5a4c9f5de377a6a349790cdc25cfed4063f5d34'
sha512sums=('8cc742a0bd8b1726f7da9121f45a78c628b6b9429824cb2a2482efe2dfdebb89e43e655ef08162798784038006a3c8349d640ee4814a635810b6a660fd63f393'
'86caa9074cb188021387bc2c40206346d3ccdfdeff3bc75728ff7712078d8584eed3dfb9a63cacadc4ae3cde54c0006b356ee6fabcffb2d8d18ef9ba46e1f193')
package() {

View File

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