From 15eb3e872be25f34bf2c80b8e7120c6a1efc0fe3 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 11 Jun 2022 02:20:34 +0200 Subject: [PATCH] reboot-LXC-host.sh: a really minor change on script output. --- reboot-LXC-host.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reboot-LXC-host.sh b/reboot-LXC-host.sh index cf10557..222fc79 100755 --- a/reboot-LXC-host.sh +++ b/reboot-LXC-host.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#/usr/bin/env bash script_name="$(basename $(realpath $0))" working_dir="$(dirname $(realpath $0))" @@ -204,7 +204,7 @@ else terminal=false fi -which lxc-ls || fatal "Seems not to be a LX Host. Missing command \033[33mlxc-ls" +[[ -n "$(which lxc-ls)" ]] || fatal "Seems not to be a LX Host. Missing command \033[33mlxc-ls"