summaryrefslogtreecommitdiff
path: root/src/frontend/cli/sisyphus-cli.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-21 16:19:16 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-21 16:23:07 +0100
commit2f890f90a1efeb782eda100cd95fb25194777ea4 (patch)
treef63bfd9504c8ff6da51a69c24a6f7e84b85c2682 /src/frontend/cli/sisyphus-cli.py
parentfe42b7d6d41eeffd64f3963802c248cc59deedb2 (diff)
backend: add gfx_ui param to setbranchv4.2409.1
qt frontend: change branch from settings window cli frontend: adjust to backend change in setbranch
Diffstat (limited to 'src/frontend/cli/sisyphus-cli.py')
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 4e7d856..18af382 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -307,7 +307,10 @@ def branch(branch: Branch = typer.Argument(...), remote: Remote = typer.Option(R
sisyphus mirror set 2\n
sisyphus mirror set 8\n
"""
- sisyphus.setbranch.start(branch.value, remote.value)
+ if sisyphus.checkenv.root():
+ sisyphus.setbranch.start(branch.value, remote.value, gfx_ui=False)
+ else:
+ sys.exit("\nYou need root permissions to do this, exiting!\n")
@app.command("sysinfo")