Skip to content

Commit 9d13c6c

Browse files
Raj Nandan SharmaRaj Nandan Sharma
Raj Nandan Sharma
authored and
Raj Nandan Sharma
committed
added uninstall script
1 parent 44590b6 commit 9d13c6c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

uninstall.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Locate the binary directory
2+
GOBIN=$(go env GOBIN)
3+
if [ -z "$GOBIN" ]; then
4+
GOBIN=$(go env GOPATH)/bin
5+
fi
6+
7+
# Remove the okgit binary
8+
rm "$GOBIN/okgit"
9+
10+
# Verify uninstallation
11+
if ! command -v okgit &> /dev/null; then
12+
echo "okgit successfully uninstalled"
13+
else
14+
echo "Failed to uninstall okgit"
15+
fi

0 commit comments

Comments
 (0)