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"