We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e8549 commit f351d78Copy full SHA for f351d78
install.cmd
@@ -3,7 +3,10 @@
3
4
echo Installing 'mob' ...
5
6
-setx MOB_HOME "%USERPROFILE%\.mob"
+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%"
11
12
if not exist %target% (
@@ -15,8 +18,8 @@ go build mob.go
15
18
copy mob.exe %target%
16
19
echo 'mob.exe' installed to %target%
17
20
-REM add MOB_HOME to PATH
-echo %path%|find /i "%MOB_HOME%">nul || set path=%path%;%MOB_HOME%
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%"
23
24
echo 'mob' successfully installed.
25
pause
0 commit comments