From: Michael Tremer Date: Mon, 10 Sep 2012 08:32:20 +0000 (+0000) Subject: cli: Check for correct arguments in cli_ident. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=111c94e2964574559f08613ab7aa2ccc7a858539;p=people%2Fstevee%2Fnetwork.git cli: Check for correct arguments in cli_ident. --- 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() {