diff --git a/fcitx5.changes b/fcitx5.changes index b1cf5cb..767822d 100644 --- a/fcitx5.changes +++ b/fcitx5.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 16 13:56:19 UTC 2022 - Marguerite Su + +- fix preun scirpt + ------------------------------------------------------------------- Sat Feb 12 02:13:30 UTC 2022 - Marguerite Su diff --git a/fcitx5.spec b/fcitx5.spec index f813974..7b35ffc 100644 --- a/fcitx5.spec +++ b/fcitx5.spec @@ -220,8 +220,8 @@ if [ -x /usr/bin/systemctl ]; then fi %preun -if [ %{name}.service -eq 0 -a -x /usr/bin/systemctl ]; then - /usr/bin/systemctl --global disable fcitx5.service || : +if [ $1 -eq 0 -a -x /usr/bin/systemctl ]; then + /usr/bin/systemctl --global disable %{?*} || : fi %endif