Skip to content

Commit

Permalink
added uninstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj Nandan Sharma authored and Raj Nandan Sharma committed May 29, 2024
1 parent 44590b6 commit 9d13c6c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Locate the binary directory
GOBIN=$(go env GOBIN)
if [ -z "$GOBIN" ]; then
GOBIN=$(go env GOPATH)/bin
fi

# Remove the okgit binary
rm "$GOBIN/okgit"

# Verify uninstallation
if ! command -v okgit &> /dev/null; then
echo "okgit successfully uninstalled"
else
echo "Failed to uninstall okgit"
fi

0 comments on commit 9d13c6c

Please sign in to comment.