updated build.sh
This commit is contained in:
parent
b63dbc5454
commit
e1e689caaf
@ -157,12 +157,13 @@ case "$@" in *--autoinstall*|*-i*)
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# this makes a copy before removing the installation. this reduces significantly the time without an installation.
|
# this makes a copy before removing the installation. this reduces significantly the time without an installation.
|
||||||
cp -r ./_build/aleta _build/tmpaleta
|
cp -r ./_build/aleta ~/.local/share/icons/.tmpaleta
|
||||||
|
|
||||||
# this two IFs checks if there is an old installation of aleta and then removes them
|
# this two IFs checks if there is an old installation of aleta and then removes them
|
||||||
if [ -d ~/.icons/aleta ] ; then
|
if [ -d ~/.icons/aleta ] ; then
|
||||||
rm -rf ~/.icons/aleta
|
rm -rf ~/.icons/aleta
|
||||||
PREVIOUSLYINSTALLED=yes
|
PREVIOUSLYINSTALLED=yes
|
||||||
|
printf "${info_color}Note: this update moves aleta to ~/.local/share/icons/.${reset_colors}\\n"
|
||||||
fi
|
fi
|
||||||
if [ -d ~/.local/share/icons/aleta ] ; then
|
if [ -d ~/.local/share/icons/aleta ] ; then
|
||||||
rm -rf ~/.local/share/icons/aleta
|
rm -rf ~/.local/share/icons/aleta
|
||||||
@ -177,7 +178,7 @@ case "$@" in *--autoinstall*|*-i*)
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# moves the copy to the actual destination.
|
# moves the copy to the actual destination.
|
||||||
mv _build/tmpaleta ~/.local/share/icons/aleta
|
mv ~/.local/share/icons/.tmpaleta ~/.local/share/icons/aleta
|
||||||
|
|
||||||
# updates the icon cache
|
# updates the icon cache
|
||||||
printf "${info_color}Updating gtk icon cache...${reset_colors}\\n"
|
printf "${info_color}Updating gtk icon cache...${reset_colors}\\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user