diff options
Diffstat (limited to 'src/frontend/cli/sisyphus-cli.py')
-rwxr-xr-x | src/frontend/cli/sisyphus-cli.py | 5 |
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") |