aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/jail-update
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/jail-update')
-rwxr-xr-xtrunk/src/jail-update3
1 files changed, 3 insertions, 0 deletions
diff --git a/trunk/src/jail-update b/trunk/src/jail-update
index 8cfc49a..c5a008f 100755
--- a/trunk/src/jail-update
+++ b/trunk/src/jail-update
@@ -50,6 +50,9 @@ search_template $template_name --update
if [ "$?" != "0" ]; then
echo $BASENAME: template $template_name not found
exit 1
+elif [ ! -d "$1" ]; then
+ echo $BASENAME: jail $1 not found
+ exit 1
fi
update_template_files