Libreoffice MS Theme: check if libreoffice installed

pull/800/head
Botspot 4 years ago
parent 4f4764a296
commit ebf5d89cc3

@ -7,6 +7,10 @@ function error {
exit 1 exit 1
} }
if ! command -v libreoffice >/dev/null ;then
error "Libreoffice is not installed, so this theme is useless to you.\nTo install libreoffice, run this in a terminal:\nsudo apt install libreoffice libreoffice-gtk2"
fi
rm -rf ~/libreoffice-ms-theme rm -rf ~/libreoffice-ms-theme
git clone --depth=1 https://github.com/Botspot/libreoffice-ms-theme || error "Failed to git clone libreoffice-ms-theme repository!" git clone --depth=1 https://github.com/Botspot/libreoffice-ms-theme || error "Failed to git clone libreoffice-ms-theme repository!"
~/libreoffice-ms-theme/apply.sh || error "apply.sh failed" ~/libreoffice-ms-theme/apply.sh || error "apply.sh failed"

@ -9,7 +9,7 @@ function error {
rm -rf ~/libreoffice-ms-theme rm -rf ~/libreoffice-ms-theme
git clone --depth=1 https://github.com/Botspot/libreoffice-ms-theme || error "Failed to git clone libreoffice-ms-theme repository!" git clone --depth=1 https://github.com/Botspot/libreoffice-ms-theme || error "Failed to git clone libreoffice-ms-theme repository!"
~/libreoffice-ms-theme/revert.sh || error "apply.sh failed" ~/libreoffice-ms-theme/revert.sh || error "revert.sh failed"
rm -rf ~/libreoffice-ms-theme rm -rf ~/libreoffice-ms-theme
echo "Your original settings are now restored. Libreoffice should now behave how it was originally." echo "Your original settings are now restored. Libreoffice should now behave how it was originally."

Loading…
Cancel
Save