From 01f065cbceed7e8f39f2ae3507cf2ab203aef6d7 Mon Sep 17 00:00:00 2001 From: pika Date: Mon, 19 May 2025 17:36:53 +0200 Subject: [PATCH] testing --- hyprlock.sh | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/hyprlock.sh b/hyprlock.sh index c296b65..63c8582 100644 --- a/hyprlock.sh +++ b/hyprlock.sh @@ -109,6 +109,13 @@ buildGraphics() { } cloneAndBuildGraphics() { + PACKAGE=hyprgraphics + + if command_exists $PACKAGE; then + echo_error "hyprlang is already installed!" + return 69 + fi + local cloneDir="$(mktemp -d)" cd $cloneDir || mkdir -p "$cloneDir" && cd "$cloneDir" @@ -131,6 +138,13 @@ buildUtils() { } cloneAndBuildUtils() { + PACKAGE=hyprutils + + if command_exists $PACKAGE; then + echo_error "hyprlang is already installed!" + return 69 + fi + local cloneDirUtils="$(mktemp -d)" # local cloneDir="$HOME/.builds" @@ -156,8 +170,10 @@ buildScanner() { } cloneAndBuildScanner() { - if command_exists hyprwayland-scanner; then - echo_error "hyprwayland-scanner is already installed!" + PACKAGE=hyprwayland-scanner + + if command_exists $PACKAGE; then + echo_error "hyprlang is already installed!" return 69 fi @@ -186,7 +202,9 @@ buildLang() { } cloneAndBuildLang() { - if command_exists hyprlang; then + PACKAGE=hyprlang + + if command_exists $PACKAGE; then echo_error "hyprlang is already installed!" return 69 fi @@ -216,6 +234,8 @@ build() { } cloneAndBuildLock() { + PACKAGE=hyprlock + local cloneDir="$(mktemp -d)" cd $cloneDir || mkdir -p $cloneDir && cd $cloneDir