From: rhatto Date: Fri, 6 Apr 2007 01:07:03 +0000 (+0000) Subject: templatepkg: --list small change X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=755b7410a2f4807828f8ea358d3ba70d285d2e00;p=simplepkg.git templatepkg: --list small change git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@275 04377dda-e619-0410-9926-eae83683ac58 --- diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index 4521fef..c8e02c7 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -528,7 +528,7 @@ function template_list { local list basedir template - if echo $1 | grep -q "/"; then + if echo $1 | grep -q "/" || [ ! -z "$1" ]; then template="`echo $1 | cut -d "/" -f 1`"