mirror of
https://github.com/0xacx/chatGPT-shell-cli.git
synced 2025-02-22 10:45:31 +00:00
Merge pull request #43 from rxaviers/restricted-history-file-permission
Restricted history file permission
This commit is contained in:
commit
589c2f7a6c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user