]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
templatepkg: --list small change
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 01:07:03 +0000 (01:07 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 01:07:03 +0000 (01:07 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@275 04377dda-e619-0410-9926-eae83683ac58

trunk/src/templatepkg

index 4521fef2b14c4d3eeee3cf32e718eafd84472814..c8e02c710aa8c03be930fe44531f020934524c7b 100755 (executable)
@@ -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`"