atom / apm

Atom Package Manager
https://atom.io/packages
MIT License
1.27k stars 294 forks source link

cannot use apm in Windows batch file #952

Open mhechthz opened 1 year ago

mhechthz commented 1 year ago

I try to run (because of proxy) following batch file:

set APMPATH=C:\Users\...
set ATOMPATH=C:\Users\...

set PROXY_IP=user:pass@myproxy:myport
%APMPATH%\apm config set proxy myproxy:myport
%APMPATH%\apm config set http-proxy %PROXY_IP%
%APMPATH%\apm config set https-proxy %PROXY_IP%

%ATOMPATH%\atom --proxy-server=http://%PROXY_IP

After the first apm command the batch stops.

How can the batch run properly?