Skip to content

Commit 7e585cc

Browse files
authored
Merge pull request #7 from mateuscomh/fix/merge
Fix merge error
2 parents 37fb0a9 + aa16234 commit 7e585cc

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

shellPass.sh

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ case $MAX in
4747
${AMARELO} 3 - Password with LeTtErS, numb3rs and Speci@l Ch@r@ct&rs ${FECHA}";
4848
read -sn 1 TIPO;
4949

50-
<<<<<<< HEAD:passgen.sh
5150
case "$TIPO" in
5251
''|*[!0-9]*)
5352
echo -e "${VERMELHO} Enter only numbers referring to the TYPE of the password ${FECHA}"
@@ -59,7 +58,6 @@ case $MAX in
5958
echo -e "${VERDE}$PASS${FECHA}"
6059
;;
6160
2)
62-
=======
6361
case "$TIPO" in
6462
''|*[!0-9]*)
6563
echo -e "${VERMELHO} Enter only numbers referring to the TYPE of the password ${FECHA}"
@@ -71,14 +69,12 @@ case $MAX in
7169
echo -e "${VERDE}$PASS${FECHA}"
7270
;;
7371
2)
74-
>>>>>>> 3ef8fe0ec1ac169b8349edba621bd1ca576048d2:shellPass.sh
75-
PASS=$(cat /dev/urandom LC_ALL=C | tr -dc 'A-Za-z0-9' | head -c "$MAX")
76-
command -v xclip > /dev/null && echo -n "$PASS" | xclip -sel copy || echo -n "$PASS" | pbcopy 2> /dev/null
77-
echo -e "${VERDE}$PASS${FECHA}"
72+
PASS=$(cat /dev/urandom LC_ALL=C | tr -dc 'A-Za-z0-9' | head -c "$MAX")
73+
command -v xclip > /dev/null && echo -n "$PASS" | xclip -sel copy || echo -n "$PASS" | pbcopy 2> /dev/null
74+
echo -e "${VERDE}$PASS${FECHA}"
7875
;;
7976
3)
80-
PASS=$(cat /dev/urandom LC_ALL=C |
81-
tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_{|}~' | head -c "$MAX")
77+
PASS=$(cat /dev/urandom LC_ALL=C | tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_{|}~' | head -c "$MAX")
8278
command -v xclip > /dev/null && echo -n "$PASS" | xclip -sel copy || echo -n "$PASS" | pbcopy 2> /dev/null
8379
echo -e "${VERDE}$PASS${FECHA}"
8480
;;
@@ -88,12 +84,10 @@ case $MAX in
8884
;;
8985
esac
9086
esac
91-
# write in file
87+
# write in local file
9288
echo "$(date '+%d/%m/%y %H:%M:%S') - $PASS" >> $(pwd)/history.log
93-
9489
}
9590
#---------MAIN-------------------------------------------------------------------|
96-
9791
case "$MAX" in
9892
h | -h | --help )
9993
echo -e "$USAGE"

0 commit comments

Comments
 (0)