Fix indentation
This commit is contained in:
parent
eb7bac0566
commit
8cde542fba
|
@ -1,5 +1,4 @@
|
|||
post_install() {
|
||||
|
||||
for line in 'QT_QPA_PLATFORMTHEME' 'QT_QUICK_CONTROLS_STYLE'; do
|
||||
grep -q "^\s*$line=\"gtk2\"" /etc/environment || continue
|
||||
if grep -q "^\s*$line=" /etc/environment; then
|
||||
|
@ -7,15 +6,13 @@ post_install() {
|
|||
else
|
||||
echo "$line=\"gtk2\"" >> /etc/environment
|
||||
fi
|
||||
done
|
||||
|
||||
done
|
||||
|
||||
find /usr/lib/systemd/user/ -name "fix-*.service" -type f -printf "%f\0" | xargs -0 systemctl --global enable
|
||||
echo "Warning: A restart is required to take effect"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
|
||||
for line in 'QT_QPA_PLATFORMTHEME' 'QT_QUICK_CONTROLS_STYLE'; do
|
||||
grep -q "^\s*$line=\"gtk2\"" /etc/environment || continue
|
||||
if grep -q "^\s*$line=" /etc/environment; then
|
||||
|
@ -23,8 +20,7 @@ post_upgrade() {
|
|||
else
|
||||
echo "$line=\"gtk2\"" >> /etc/environment
|
||||
fi
|
||||
done
|
||||
|
||||
done
|
||||
|
||||
find /usr/lib/systemd/user/ -name "fix-*.service" -type f -printf "%f\0" | xargs -0 systemctl --global enable
|
||||
echo "Warning: A restart is required to take effect"
|
||||
|
@ -33,7 +29,7 @@ done
|
|||
pre_remove() {
|
||||
for line in 'QT_QPA_PLATFORMTHEME' 'QT_QUICK_CONTROLS_STYLE'; do
|
||||
sed -i "/^\s*$line=/d" /etc/environment
|
||||
done
|
||||
done
|
||||
|
||||
find /usr/lib/systemd/user/ -name "fix-*.service" -type f -printf "%f\0" | xargs -0 systemctl --global disable
|
||||
echo "Warning: A restart is required to take effect"
|
||||
|
|
Loading…
Reference in New Issue
Block a user