Skip to content

Commit f3a3ebc

Browse files
committed
Delete old plain text secret on initialize
1 parent a8be46e commit f3a3ebc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lazy-connect.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ function _lazy_connect_init() {
1313
echo "**********"
1414

1515
echo 'Storing secret in keychain...'
16+
old_secret=~/.config/lazy-connect/secret
17+
[ -f "$old_secret" ] && rm "$old_secret"
1618
security delete-generic-password -a lazy-connect -s lazy-connect &> /dev/null
1719
security add-generic-password -a lazy-connect -p "$secret_key" -s lazy-connect
1820
;;

0 commit comments

Comments
 (0)