Allow the user to clone simple-hyprland anywhere

This commit is contained in:
Ben Record
2025-08-06 18:09:58 -06:00
parent 879dba81c8
commit d5bab50aed
7 changed files with 26 additions and 26 deletions

View File

@@ -9,10 +9,10 @@ BOLD='\033[1m'
NC='\033[0m' # No Color
# Get the directory of the current script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BASE_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")/../../")
# Log file
LOG_FILE="$SCRIPT_DIR/simple_hyprland_install.log"
LOG_FILE="$BASE_DIR/scripts/installer/simple_hyprland_install.log"
function trap_message {
print_error "\n\nScript interrupted. Exiting.....\n"
@@ -114,7 +114,7 @@ function run_command {
# Function to run a script with retry and confirmation
function run_script {
local script="$SCRIPT_DIR/$1"
local script="$BASE_DIR/scripts/installer/$1"
local description="$2"
if ask_confirmation "\nExecute '$description' script"; then
while ! bash "$script"; do