diff options
Diffstat (limited to 'trunk')
-rwxr-xr-x | trunk/src/mkjail | 9 |
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 } |