Skip to content

Commit

Permalink
update create_bat
Browse files Browse the repository at this point in the history
update create_bat
  • Loading branch information
aronovgj committed Mar 5, 2015
1 parent 196884f commit 54af2a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions create_bat.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
chocoinst = r"""@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"""
warning = ['Config has insecure allowGlobalConfirmation set to true.', ' This setting lowers the integrity of the security of your system. If', ' this is not intended, please change the setting using the feature', ' command.']
chocoversion = "Chocolatey v([0-9].{0,1})*"
proglist = []
prelist = []

#check if .bat already exists. if yes, delete it
if os.path.isfile("installs.bat") == True:
Expand All @@ -18,8 +20,7 @@
#save output from cmd
(output, err) = p.communicate()

proglist = []
prelist = []

#format output to proper string, deleting version numbers after the program names
s = output.split('\r\n')
for entry in s[:-2]:
Expand Down

0 comments on commit 54af2a3

Please sign in to comment.