diff --git a/src/modules/wrds/WRDS.jl b/src/modules/wrds/WRDS.jl index 46f77da..77af162 100644 --- a/src/modules/wrds/WRDS.jl +++ b/src/modules/wrds/WRDS.jl @@ -103,6 +103,7 @@ function pgpass(wrdsuser::WrdsUser) secret_pass = Base.getpass("WRDS password for user $(wrdsuser.username)") print("\n") pass = read(secret_pass, String) + Base.shred!() entry = "$WRDS_POSTGRES_HOST:$WRDS_POSTGRES_PORT:$WRDS_POSTGRES_DB:$(wrdsuser.username):$pass" if isfile(pgpass) # Change permission to write