Skip to content

Commit

Permalink
fix: sed on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
kerolloz committed Nov 7, 2023
1 parent 5bc50f5 commit a8e9804
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ function remove() {
echo "Creating a backup of your ${RC_PROFILE} to ${RC_PROFILE}-BACKUP"
cp "$RC_PROFILE" "${RC_PROFILE}-BACKUP"
echo "Removing exports for GOROOT & GOPATH from ${RC_PROFILE}"
sed -i '/export GOROOT/d' "${RC_PROFILE}"
sed -i '/:$GOROOT/d' "${RC_PROFILE}"
sed -i '/export GOPATH/d' "${RC_PROFILE}"
sed -i '/:$GOPATH/d' "${RC_PROFILE}"
sed -i'' -e '/export GOROOT/d' "${RC_PROFILE}"
sed -i'' -e '/:$GOROOT/d' "${RC_PROFILE}"
sed -i'' -e '/export GOPATH/d' "${RC_PROFILE}"
sed -i'' -e '/:$GOPATH/d' "${RC_PROFILE}"

echo "$($TEXT_COLOR $GREEN)Uninstalled Go Successfully!${RESET}"
}
Expand Down

0 comments on commit a8e9804

Please sign in to comment.