From 3079f4b0ca543d23e6470a8c5cd0343d52eb0406 Mon Sep 17 00:00:00 2001 From: germedeb Date: Mon, 29 Aug 2022 17:41:22 -0300 Subject: [PATCH] updated the autoinstall order. this commit reduces the amount of time without aleta installed. it now copies the new aleta to a tmp folder, then removes the old aleta, and then renames the tmpfolder to the definitive name. --- tasks/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/build.sh b/tasks/build.sh index 5d4b142..9fb8164 100755 --- a/tasks/build.sh +++ b/tasks/build.sh @@ -149,9 +149,10 @@ else fi case "$@" in *--autoinstall*|*-i*) printf "${info_color}Performing an Update/Installation of aleta${reset_colors}\\n" - rm -rf ~/.icons/aleta mkdir ~/.icons/aleta -p - cp -r ./_build/aleta/* ~/.icons/aleta/ + cp -r ./_build/aleta/* ~/.icons/tmpaleta/ + rm -rf ~/.icons/aleta + mv ~/.icons/tmpaleta ~/.icons/aleta printf "${info_color}Updating gtk icon cache...${reset_colors}\\n" gtk-update-icon-cache ~/.icons/aleta/