diff options
author | Sofiane Medjkoune <sofiane@medjkoune.fr> | 2018-07-27 23:14:25 +0200 |
---|---|---|
committer | Sofiane Medjkoune <sofiane@medjkoune.fr> | 2018-07-27 23:14:25 +0200 |
commit | ef32717c79f3d482dbd25eddaee4a1819e0dbd47 (patch) | |
tree | e209f0c3a87ffae4dd10fe9d7b4d587e4bd7349d | |
parent | 3dd456202d7a39fec9c6cc434ced30f8acd6c25f (diff) |
Split bash expression for not using && in simple brackets
-rw-r--r-- | installer/functions.sh | 2 |
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 |