File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 33
44echo Installing 'mob' ...
55
6- REM set variable for local script
7- set MOB_HOME = %USERPROFILE% \.mob
8- REM set for user, not visible for current shell
9- setx MOB_HOME " %MOB_HOME% "
10- set target = " %MOB_HOME% "
6+ REM set target to the user's bin directory
7+ set target = " %USERPROFILE% \bin"
118
129if not exist %target% (
13- md %target%
14- echo Directory %target% created.
10+ md %target%
11+ echo Directory %target% created.
1512)
1613
1714go build mob.go
1815copy mob.exe %target%
1916echo 'mob.exe' installed to %target%
2017
21- REM add MOB_HOME to PATH, not used in current shell
22- echo %path% | find /i " %MOB_HOME% " > nul || setx path " %path% ;%MOB_HOME% "
18+ REM add the user's bin directory to PATH, not used in current shell
19+ echo %path% | find /i " %USERPROFILE% \bin " > nul || setx path " %path% ;%USERPROFILE% \bin "
2320
2421echo 'mob' successfully installed.
25- pause
22+ pause
You can’t perform that action at this time.
0 commit comments