diff --git a/install-scripts/quickshell.sh b/install-scripts/quickshell.sh index fb80751..92b041f 100755 --- a/install-scripts/quickshell.sh +++ b/install-scripts/quickshell.sh @@ -7,15 +7,18 @@ if [[ $USE_PRESET = [Yy] ]]; then fi quick=( - quickshell + quickshell ) ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # Change the working directory to the parent directory of the script PARENT_DIR="$SCRIPT_DIR/.." -cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; } +cd "$PARENT_DIR" || { + echo "${ERROR} Failed to change directory to $PARENT_DIR" + exit 1 +} # Source the global functions script if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then @@ -23,8 +26,6 @@ if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then exit 1 fi - - # Set the name of the log file to include the current date and time LOG="Install-Logs/install-$(date +%d-%H%M%S)_quick.log" @@ -32,19 +33,8 @@ LOG="Install-Logs/install-$(date +%d-%H%M%S)_quick.log" printf "\n%s - Installing ${SKY_BLUE}Quick Shell ${RESET} for Desktop Overview \n" "${NOTE}" for PKG1 in "${quick[@]}"; do - install_package "$PKG1" "$LOG" + install_package "$PKG1" "$LOG" done -# removal of ags -# Check if the file exists and remove it -printf "\n%s - removing ${SKY_BLUE}AGS${RESET} \n" "${NOTE}" -if [ -f "/usr/local/bin/ags" ]; then - sudo rm -r /usr/local/bin/ags -fi +printf "\n%.0s" {1..1} -if [ -d "/usr/local/share/com.github.Aylur.ags" ]; then - sudo rm -rf /usr/local/share/com.github.Aylur.ags -fi - - -printf "\n%.0s" {1..1} \ No newline at end of file