diff --git a/hyprlock.sh b/hyprlock.sh index 808429b..a44eb3b 100644 --- a/hyprlock.sh +++ b/hyprlock.sh @@ -33,18 +33,18 @@ getImports() { sleep 0.2 rm "$import" + unset PACKAGE + + PACKAGE=hyprlock && + echo_note "Installing $PACKAGE.." + + sleep 1 + if command_exists $PACKAGE; then echo_warning "$PACKAGE is alread installed!" echo_warning "Exiting now!" exit 69 fi - - unset PACKAGE - - sleep 1 - - PACKAGE=hyprlock && - echo_note "Installing $PACKAGE.." } checkComp() {