@@ -4,7 +4,7 @@ export LANG=C
44# ----------------------------------------------------|
55# Matheus Martins 3mhenrique@gmail.com
66# https://github.com/mateuscomh/yoURL
7- # 30/03/2021 3.7.5 GPL3
7+ # 30/03/2021 3.7.6 GPL3
88# Generate secure passwords on terminal
99# Depends: words; xclip on GNU/Linux / pbcopy on IOS
1010# ----------------------------------------------------|
@@ -14,7 +14,7 @@ BOLD=$(tput bold)
1414ITALIC=$( tput dim)
1515
1616main () {
17- local VERSION=" Ver:3.7.5 "
17+ local VERSION=" Ver:3.7.6 "
1818 local AUTHOR=" Matheus Martins-3mhenrique@gmail.com"
1919 local USAGE=" Generate random passwords from CLI
2020███████╗██╗ ██╗███████╗██╗ ██╗ ██████╗ █████╗ ▄▄███▄▄·▄▄███▄▄·
@@ -27,7 +27,7 @@ main() {
2727 local TIPO=" $2 "
2828 echo -e " $USAGE "
2929 case " $MAX " in
30- v | -v | h | -h | --version)
30+ h | -h | v | -v | --version)
3131 echo -e " ${ITALIC} $VERSION / $AUTHOR ${FECHA} "
3232 return
3333 ;;
@@ -50,8 +50,12 @@ main() {
5050 ;;
5151 4)
5252 case $( uname -s) in
53- Darwin) DICT=" /usr/share/dict/web2" ;;
54- Linux) DICT=" /usr/share/dict/american-english" ;;
53+ Darwin)
54+ DICT=" /usr/share/dict/web2"
55+ ;;
56+ Linux)
57+ DICT=" /usr/share/dict/american-english"
58+ ;;
5559 * )
5660 echo " This is compatible only for GNU/Linux, MacOS or WSL2"
5761 exit 1
@@ -117,7 +121,9 @@ _makePass() {
117121 fi
118122 echo -e " ${BOLD} $PASS ${FECHA} "
119123 case $( uname -s) in
120- Darwin) printf %s " $PASS " | pbcopy 2> /dev/null ;;
124+ Darwin)
125+ printf %s " $PASS " | pbcopy 2> /dev/null
126+ ;;
121127 Linux)
122128 if grep -iq Microsoft /proc/version; then
123129 printf " %s" " $PASS " | clip.exe
0 commit comments