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 7b98723 commit be45516Copy full SHA for be45516
1 file changed
src/install.py
@@ -21,11 +21,15 @@
21
def main(package, noconfirm=False):
22
local = False
23
# check if package is local
24
- if package.endswith(".car"):
+ if package.endswith(".car") or package.endswith(".car.zip"):
25
+ status("Local package!")
26
os.system(f"unzip {package}")
- os.chdir(package)
27
+ os.chdir(package.strip(".zip").strip(".car"))
28
with open("install_script.py", "r") as f:
29
script = f.read()
30
+ for i in script.splitlines():
31
+ if i.startswith("#NAME: "):
32
+ package = i.replace("#NAME: ", "")
33
local = True
34
# first check if the name is correct, autocorrect if not
35
# using umbrella/autocorrect_package.py (unlicense)
0 commit comments