mirror of
https://github.com/0xacx/chatGPT-shell-cli.git
synced 2024-11-24 11:25:31 +00:00
Remove flag to make sed command correct for linux
This commit is contained in:
parent
6b641ca86f
commit
e487b01fbf
@ -32,7 +32,7 @@ curl -sS https://raw.githubusercontent.com/0xacx/chatGPT-shell-cli/main/chatgpt.
|
||||
|
||||
# Replace open image command with xdg-open for linux systems
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]] || [[ "$OSTYPE" == "freebsd"* ]]; then
|
||||
sed -i -h 's/open "\${image_url}"/xdg-open "\${image_url}"/g' '/usr/local/bin/chatgpt'
|
||||
sed -i 's/open "\${image_url}"/xdg-open "\${image_url}"/g' '/usr/local/bin/chatgpt'
|
||||
fi
|
||||
chmod +x /usr/local/bin/chatgpt
|
||||
echo "Installed chatgpt script to /usr/local/bin/chatgpt"
|
||||
|
Loading…
Reference in New Issue
Block a user