diff --git a/NoiceGRUB.py b/NoiceGRUB.py index 0c7b366..1a8a358 100644 --- a/NoiceGRUB.py +++ b/NoiceGRUB.py @@ -9,7 +9,7 @@ from rich.markdown import Markdown from rich.prompt import IntPrompt,Confirm from rich.panel import Panel -import subprocess,os +import os console = Console() @@ -33,6 +33,6 @@ if Confirm.ask('[yellow bold]Do you want to place the generated theme in /boot/grub/themes/[/yellow bold]'): richprint('\n[green bold]Executing scripts/install.sh ... [/green bold]') os.system('chmod +x ./scripts/install.sh') - subprocess.run(['sudo','./scripts/install.sh'],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL) + os.system('sudo ./scripts/install.sh') richprint('[green bold]Done') richprint('[green bold]Thankyou for using NoiceGRUB[/green bold]') \ No newline at end of file diff --git a/noicegrub/__init__.py b/noicegrub/__init__.py index d351768..2c880fe 100644 --- a/noicegrub/__init__.py +++ b/noicegrub/__init__.py @@ -28,4 +28,4 @@ def preset_table(): 8 `b8 8 8 8 8 . 8. 8 8 8 8 8 8 8 8 8 `8 `YooP' 8 `YooP' `Yooo' `YooP8 8 8 `YooP' 8oooP' ..:::..:.....::..:.....::.....::....8 :..:::..:.....::......: -:::::::: @1337kid ::::::::::::::::::8 ::::::: v1.8 ::::::::::\n''' \ No newline at end of file +:::::::: @1337kid ::::::::::::::::::8 ::::::: v1.8.1 :::::::::\n''' \ No newline at end of file diff --git a/scripts/install.sh b/scripts/install.sh index d10f073..0c5fb10 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,12 +1,26 @@ #!/bin/bash +printf "\033[94m\033[1m" +cat <> /etc/default/grub +printf "\033[92m[+] \033[94mRunning update-grub\n\033[92m" update-grub \ No newline at end of file