]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
mkjail: small change
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 22:30:23 +0000 (22:30 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 22:30:23 +0000 (22:30 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@302 04377dda-e619-0410-9926-eae83683ac58

trunk/src/mkjail

index 5284bfc7380ef72f224ae791fa19d2f25f31d3b3..43669e11711830546eb00d3a3d0dab03004d5a11 100755 (executable)
@@ -47,12 +47,11 @@ function exec_post_install_scripts {
 
   echo "$BASENAME: executing template scripts..."
   if [ -d "$TEMPLATE_BASE.s" ]; then
-    list="`ls $TEMPLATE_BASE.s/`"
-    for command in $list; do
-      if [ -x "$TEMPLATE_BASE.s/$command" ]; then
-        exec $TEMPLATE_BASE.s/$command $1 $2
+    for file in $TEMPLATE_BASE.s/*; do
+      if [ -x "$file" ]; then
+        $file $1 $2
       fi
-    done
+   done
   fi
 
 }