Archived
feat: Add setup function
This commit is contained in:
1 parent
ead9e3a3f7
commit
f5386d0e98
3 files changed
+20
-5
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import subprocess
|
||||
|
||||
from commands.util import pacman
|
||||
|
||||
|
||||
def setup():
|
||||
print("==> Installing required packages")
|
||||
if not pacman.install_package_list(["git"]):
|
||||
print("Git installation failed")
|
||||
return
|
||||
subprocess.run(["git", "clone", "https://aur.archlinux.org/yay.git"], cwd="/tmp")
|
||||
subprocess.run(["makepkg", "-si"], cwd="/tmp/yay")
|
||||
print("==> Installation completed")
|
||||
Reference in new issue
Block a user