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.
This commit is contained in:
germedeb 2022-08-29 17:41:22 -03:00
parent 40526ac1b6
commit 3079f4b0ca
1 changed files with 3 additions and 2 deletions

View File

@ -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/