From 6bcdb1ac20fc18981435d1cb5bd5e57673286669 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Sun, 13 Dec 2020 14:49:39 +0100 Subject: [PATCH] version --- jaildk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jaildk b/jaildk index d52b05a..df67d2e 100755 --- a/jaildk +++ b/jaildk @@ -102,7 +102,7 @@ load-jail-config() { die_if_not_exist() { jail=$1 which=$2 - VERSION=$3 + jailversion=$3 if test -z "$which"; then which="Jail" @@ -112,9 +112,9 @@ die_if_not_exist() { die "$which $jail doesn't exist!" fi - if test -n "$VERSION"; then - if ! test -d $j/etc/$jail/etc-$VERSION; then - die "$which $jail $version doesn't exist!" + if test -n "$jailversion"; then + if ! test -d $j/etc/$jail/etc-$jailversion; then + die "$which $jail $jailversion doesn't exist!" fi fi }