forked from germedeb/aleta-postre
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:
parent
40526ac1b6
commit
3079f4b0ca
|
@ -149,9 +149,10 @@ else
|
||||||
fi
|
fi
|
||||||
case "$@" in *--autoinstall*|*-i*)
|
case "$@" in *--autoinstall*|*-i*)
|
||||||
printf "${info_color}Performing an Update/Installation of aleta${reset_colors}\\n"
|
printf "${info_color}Performing an Update/Installation of aleta${reset_colors}\\n"
|
||||||
rm -rf ~/.icons/aleta
|
|
||||||
mkdir ~/.icons/aleta -p
|
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"
|
printf "${info_color}Updating gtk icon cache...${reset_colors}\\n"
|
||||||
gtk-update-icon-cache ~/.icons/aleta/
|
gtk-update-icon-cache ~/.icons/aleta/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue