From 111c94e2964574559f08613ab7aa2ccc7a858539 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 10 Sep 2012 08:32:20 +0000 Subject: [PATCH] cli: Check for correct arguments in cli_ident. --- functions.cli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.cli b/functions.cli index b6ac6a16..46639ee9 100644 --- a/functions.cli +++ b/functions.cli @@ -271,7 +271,7 @@ function cli_space() { function cli_ident() { local level=${1} - shift + assert isinteger level local ident="" while [ ${level} -gt 1 ]; do @@ -279,7 +279,7 @@ function cli_ident() { level=$(( ${level} - 1 )) done - echo "${ident}" + print "${ident}" } function cli_yesno() { -- 2.47.3