From 58a2ca5c45ef2758b17d7c119f676c4e4e27cee2 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 6 Apr 2007 21:36:38 +0000 Subject: mkjail: small change git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@301 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/mkjail | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'trunk/src') diff --git a/trunk/src/mkjail b/trunk/src/mkjail index c4bf882..5284bfc 100755 --- a/trunk/src/mkjail +++ b/trunk/src/mkjail @@ -39,13 +39,16 @@ function exec_post_install_scripts { # exec post installation scripts # usage: exec_post_install_script + 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 -- cgit v1.2.3