Merge pull request #43 from rxaviers/restricted-history-file-permission

Restricted history file permission
This commit is contained in:
0xacx 2023-03-17 15:13:07 +02:00 committed by GitHub
commit 589c2f7a6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,7 +211,7 @@ CONTEXT=${CONTEXT:-false}
# create history file
if [ ! -f ~/.chatgpt_history ]; then
touch ~/.chatgpt_history
chmod a+rw ~/.chatgpt_history
chmod 600 ~/.chatgpt_history
fi
running=true