Skip to content

Commit e487b01

Browse files
committed
Remove flag to make sed command correct for linux
1 parent 6b641ca commit e487b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ curl -sS https://raw.githubusercontent.com/0xacx/chatGPT-shell-cli/main/chatgpt.
3232

3333
# Replace open image command with xdg-open for linux systems
3434
if [[ "$OSTYPE" == "linux-gnu"* ]] || [[ "$OSTYPE" == "freebsd"* ]]; then
35-
sed -i -h 's/open "\${image_url}"/xdg-open "\${image_url}"/g' '/usr/local/bin/chatgpt'
35+
sed -i 's/open "\${image_url}"/xdg-open "\${image_url}"/g' '/usr/local/bin/chatgpt'
3636
fi
3737
chmod +x /usr/local/bin/chatgpt
3838
echo "Installed chatgpt script to /usr/local/bin/chatgpt"

0 commit comments

Comments
 (0)