diff --git a/kiauh/components/crowsnest/crowsnest.py b/kiauh/components/crowsnest/crowsnest.py index a330973..36d9793 100644 --- a/kiauh/components/crowsnest/crowsnest.py +++ b/kiauh/components/crowsnest/crowsnest.py @@ -27,7 +27,6 @@ from components.crowsnest import ( ) from components.klipper.klipper import Klipper from core.backup_manager.backup_manager import BackupManager -from core.constants import CURRENT_USER from core.logger import DialogType, Logger from core.settings.kiauh_settings import KiauhSettings from core.types.component_status import ComponentStatus @@ -73,7 +72,7 @@ def install_crowsnest() -> None: Logger.print_info("Installer will prompt you for sudo password!") try: run( - f"sudo make install BASE_USER={CURRENT_USER}", + f"sudo make install", cwd=CROWSNEST_DIR, shell=True, check=True, diff --git a/scripts/crowsnest.sh b/scripts/crowsnest.sh index 0ec857e..788468f 100644 --- a/scripts/crowsnest.sh +++ b/scripts/crowsnest.sh @@ -105,7 +105,7 @@ function install_crowsnest(){ pushd "${HOME}/crowsnest" &> /dev/null || exit 1 title_msg "Installer will prompt you for sudo password!" status_msg "Launching crowsnest installer ..." - if ! sudo make install BASE_USER=$USER; then + if ! sudo make install; then error_msg "Something went wrong! Please try again..." exit 1 fi