summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--installer/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/functions.sh b/installer/functions.sh
index 7ea9a80de7..e1267bd654 100644
--- a/installer/functions.sh
+++ b/installer/functions.sh
@@ -460,7 +460,7 @@ issystemd() {
ns="$(readlink /proc/${p}/ns/pid 2>/dev/null)"
# if pid of systemd is in our namespace, it is systemd
- [ ! -z "${myns}" && "${myns}" = "${ns}" ] && return 0
+ [ ! -z "${myns}" ] && [ "${myns}" = "${ns}" ] && return 0
done
# else, it is not systemd