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

trunk/src/mkjail

index c4bf882507e0e29ae46475779b0aebfc99bf1085..5284bfc7380ef72f224ae791fa19d2f25f31d3b3 100755 (executable)
@@ -39,13 +39,16 @@ function exec_post_install_scripts {
   # exec post installation scripts
   # usage: exec_post_install_script <jail-root> <jail-name>
 
+  local list
+
   if [ -z "$2" ]; then
     return 1
   fi
 
   echo "$BASENAME: executing template scripts..."
   if [ -d "$TEMPLATE_BASE.s" ]; then
-    for command in `ls $TEMPLATE_BASE.s/`; do
+    list="`ls $TEMPLATE_BASE.s/`"
+    for command in $list; do
       if [ -x "$TEMPLATE_BASE.s/$command" ]; then
         exec $TEMPLATE_BASE.s/$command $1 $2
       fi