aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-06 22:30:23 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-06 22:30:23 +0000
commite2c20ff09c500808300d6a282fc3b200eadf2d77 (patch)
tree9e38430f9367bcbaa9ee01d2896c599e51c3155f
parent58a2ca5c45ef2758b17d7c119f676c4e4e27cee2 (diff)
downloadsimplepkg-e2c20ff09c500808300d6a282fc3b200eadf2d77.tar.gz
simplepkg-e2c20ff09c500808300d6a282fc3b200eadf2d77.tar.bz2
mkjail: small change
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@302 04377dda-e619-0410-9926-eae83683ac58
-rwxr-xr-xtrunk/src/mkjail9
1 files changed, 4 insertions, 5 deletions
diff --git a/trunk/src/mkjail b/trunk/src/mkjail
index 5284bfc..43669e1 100755
--- a/trunk/src/mkjail
+++ b/trunk/src/mkjail
@@ -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
}