Skip to content

Commit e647b85

Browse files
committed
chore: file format
1 parent adb24ec commit e647b85

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# shellPass - Shell Script Password Generator
22

3-
[![Release](https://img.shields.io/badge/release-3.7.5-brightgreen)](https://github.com/mateuscomh/shellPass/releases)
3+
[![Release](https://img.shields.io/badge/release-3.7.6-brightgreen)](https://github.com/mateuscomh/shellPass/releases)
44
[![Build Status](https://github.com/mateuscomh/shellPass/actions/workflows/super-linter.yml/badge.svg)](https://github.com/mateuscomh/shellPass/actions/workflows/super-linter.yml)
55

66
## Overview

shellPass.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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)
1414
ITALIC=$(tput dim)
1515

1616
main() {
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

Comments
 (0)