Skip to content

Commit 0b9803d

Browse files
authored
Merge pull request #3 from mateuscomh/feature/history
Feature/history added feature to log time and passwords
2 parents a154a99 + 54479dd commit 0b9803d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
history.log

passgen.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#------------------------------------------------------------------------------|
44
# AUTOR : Matheus Martins <3mhenrique@gmail.com>
55
# HOMEPAGE : https://github.com/mateuscomh
6-
# DATA/VER. : 29/08/2020 2.2
6+
# DATA/VER. : 29/08/2020 2.3
77
# LICENÇA : GPL3
88
# PEQUENA-DESCRICÃO : Shell Script to generate fast passwords on terminal
99
# REQUISITOS : xclip on GNU/Linux / pbcopy on MacOS
@@ -62,6 +62,9 @@ case $MAX in
6262
;;
6363
esac
6464
esac
65+
# write in file
66+
echo "$(date '+%d/%m/%y %H:%M:%S') - $PASS" >> $(pwd)/history.log
67+
6568
}
6669
#---------MAIN-------------------------------------------------------------------|
6770

0 commit comments

Comments
 (0)