Skip to content

Commit 8afc66f

Browse files
committed
Make reinstallation easier locally
1 parent 0a13439 commit 8afc66f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
target=/usr/local/bin/
33
go build &&
44
cp -f mob "$target" &&
5-
echo "installed 'mob' to $target"
5+
echo "installed 'mob' in $target"

reinstall

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#! /usr/bin/env bash
2+
file=/usr/local/bin/mob
3+
if test -f "$file"; then
4+
sudo rm "$file"
5+
fi
6+
sudo ./install
7+

0 commit comments

Comments
 (0)