aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJa.KooLit <ejhay.games@gmail.com>2023-11-16 17:28:25 +0900
committerJa.KooLit <ejhay.games@gmail.com>2023-11-16 17:28:25 +0900
commit38c261da23b899cce66fedcec450cd819e74c59a (patch)
tree698f64dc793245512dd086ef705623d1b141cd8c
parent655d2e13d3756959a18a22c941a7c46acf8df18f (diff)
updated release.sh to delete existing folders
-rwxr-xr-xrelease.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/release.sh b/release.sh
index 6ad84034..45436087 100755
--- a/release.sh
+++ b/release.sh
@@ -34,7 +34,10 @@ if [ -f Hyprland-Dots.tar.gz ]; then
echo -e "${WARN} Hyprland-Dots.tar.gz is outdated (Existing version: $existing_version, Latest version: $latest_version)."
read -p "Do you want to upgrade to the latest version? (y/n): " upgrade_choice
if [ "$upgrade_choice" = "y" ]; then
- echo -e "${NOTE} Proceeding to download the latest release."
+ echo -e "${NOTE} Proceeding to download the latest release."
+
+ # Delete existing directories starting with JaKooLit-Hyprland-Dots
+ find . -type d -name 'JaKooLit-Hyprland-Dots*' -exec rm -rf {} +
rm -f Hyprland-Dots.tar.gz
printf "${WARN} Removed existing Hyprland-Dots.tar.gz.\n"
else
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage