Split bash expression for not using && in simple brackets
Sofiane Medjkoune committed
Jul 27, 2018 at 23:14 UTC
ef32717c79f3d482dbd25eddaee4a1819e0dbd47
1 file changed
+1
-1
installer/functions.sh
+1
-1
@@ -460,7 +460,7 @@ issystemd() {
460
ns="$(readlink /proc/${p}/ns/pid 2>/dev/null)"
461
462
# if pid of systemd is in our namespace, it is systemd
463
- [ ! -z "${myns}" && "${myns}" = "${ns}" ] && return 0
463
+ [ ! -z "${myns}" ] && [ "${myns}" = "${ns}" ] && return 0
464
done
465
466
# else, it is not systemd