Skip to content

Commit c2e60b5

Browse files
committed
pass installation script args to interactive installer
1 parent e46c8fb commit c2e60b5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

scripts/install.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import datetime
22
import os
33
import subprocess
4+
import sys
45
import time
56
import questionary
67
import requests
@@ -243,6 +244,8 @@ def run_install(answers: dict):
243244
stdin=subprocess.DEVNULL
244245
command = ['nohup'] + command
245246
command += args.split()
247+
run_args = sys.argv[1:]
248+
command += run_args
246249

247250
print(command)
248251

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ if [ "${mode}" = "none" ] && [ "$backup" = "none" ]; then # no mode or backup w
9393
python3 -m pip install --upgrade pip
9494
fi
9595
pip3 install questionary==2.1.0 --break-system-packages
96-
python3 install.py
96+
python3 install.py "$@"
9797
pip3 uninstall questionary -y
9898
exit
9999
fi

0 commit comments

Comments
 (0)