diff --git a/spec/macros.inc b/spec/macros.inc index 99ee9a06a..d4e99e6ae 100644 --- a/spec/macros.inc +++ b/spec/macros.inc @@ -58,11 +58,11 @@ fi \ %%if %%{enable_systemd} \ if [ $1 = 0 ]; then \ systemctl --no-reload disable lvm2-%%{-s*}.%%{-t*} > /dev/null 2>&1 || : \ - %%if %%{-t*} == socket \ + %%if "%%{-t*}" == "socket" \ systemctl --no-reload disable lvm2-%%{-s*}.service > /dev/null 2>&1 || : \ %%endif \ systemctl stop lvm2-%%{-s*}.%%{-t*} > /dev/null 2>&1 || : \ - %%if %%{-t*} == socket \ + %%if "%%{-t*}" == "socket" \ systemctl stop lvm2-%%{-s*}.service > /dev/null 2>&1 || : \ %%endif \ fi \