Skip to content

Commit 8d9ab6d

Browse files
committed
Accepting mltiple files
1 parent f71ea5f commit 8d9ab6d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

generate.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import toml
22
import sys
3+
import os
34

45
methods = {
56
"apt": "$APT_GET",
@@ -12,7 +13,7 @@
1213
def get_method_case(method):
1314
return "[ ! -z "+methods[method]+"_CMD ]; then\n"
1415

15-
for path in sys.argv[1:]:
16+
def generate(path):
1617

1718
installer_toml_path = path+"/installer.toml"
1819
installer_sh_path = path+"/installer.sh"
@@ -50,3 +51,8 @@ def get_method_case(method):
5051

5152

5253
installer_sh.close()
54+
55+
56+
for path in sys.argv[1:]:
57+
if os.path.exists(path+'/installer.toml'):
58+
generate(path)

0 commit comments

Comments
 (0)