mirror of
https://github.com/horst3180/arc-theme.git
synced 2024-10-27 19:04:02 +00:00
Minor improvments
This commit is contained in:
parent
83f98f4448
commit
05be1c125f
@ -92,25 +92,28 @@ install_theme() {
|
|||||||
make install
|
make install
|
||||||
|
|
||||||
# Install this script
|
# Install this script
|
||||||
if [ ! -f /usr/bin/$(basename $0) ]; then
|
if [ -f $(basename $0) ]; then
|
||||||
echo
|
if [ ! -f /usr/bin/$(basename $0) ]; then
|
||||||
read -r -p "Do you like to install the $(basename $0) for future upgrades? [y/N] " response
|
echo
|
||||||
case $response in
|
read -r -p "Do you like to install the $(basename $0) for future upgrades? [y/N] " response
|
||||||
[yY][eE][sS]|[yY])
|
case $response in
|
||||||
cp -r arc-theme-upgrade /usr/bin/
|
[yY][eE][sS]|[yY])
|
||||||
|
echo "Installing $(basename $0) on /usr/bin/"
|
||||||
|
cp -r arc-theme-upgrade /usr/bin/
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Aborted by user"
|
||||||
|
exit 0;
|
||||||
;;
|
;;
|
||||||
*)
|
esac
|
||||||
echo "Aborted by user"
|
else
|
||||||
exit 0;
|
echo "Upgrading $(basename $0)"
|
||||||
;;
|
cp -f $(basename $0) /usr/bin/
|
||||||
esac
|
fi
|
||||||
else
|
|
||||||
echo "Upgrading the $(basename $0)"
|
|
||||||
cp -f $(basename $0) /usr/bin/
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove the sources
|
# Remove the sources
|
||||||
rm -rf $tempdir
|
# rm -rf $tempdir
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Installation complete."
|
echo "Installation complete."
|
||||||
|
Loading…
Reference in New Issue
Block a user