The result of the check is needed only once, so there's no advantage in
caching it in a variable.
---
systemd/fedora-autorelabel | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/systemd/fedora-autorelabel b/systemd/fedora-autorelabel
index d83040a..204c576 100755
--- a/systemd/fedora-autorelabel
+++ b/systemd/fedora-autorelabel
@@ -5,16 +5,13 @@
. /etc/init.d/functions
-PLYMOUTH=
-[ -x /usr/bin/plymouth ] && PLYMOUTH=yes
-
relabel_selinux() {
# if /sbin/init is not labeled correctly this process is running in the
# wrong context, so a reboot will be required after relabel
AUTORELABEL=
. /etc/selinux/config
echo "0" > /selinux/enforce
- [ -n "$PLYMOUTH" ] && plymouth --hide-splash
+ [ -x /usr/bin/plymouth ] && plymouth --hide-splash
if [ "$AUTORELABEL" = "0" ]; then
echo