From 50347c1ac59cb65a8eb8e583f653d992360e3eca Mon Sep 17 00:00:00 2001 From: Xuefer Date: Thu, 9 Aug 2012 12:57:07 +0000 Subject: [PATCH] refactor: clean up code git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1138 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- devel/run | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devel/run b/devel/run index 66feb0e..1b780fb 100755 --- a/devel/run +++ b/devel/run @@ -120,7 +120,7 @@ hiecho "Loading config devel/run.cfg" PHPSDIR=${PHPSDIR:-$HOME/test} if [[ $# -eq 0 ]]; then - set -- "$action" "${args[@]}" + set -- $action "${args[@]}" fi # devel actions @@ -331,7 +331,7 @@ run() { case "${cmd[0]}" in *php-fpm*) stopfpm - hiecho Starting fpm ... + hiecho Starting fpm "${commandLine[@]}" ... "${commandLine[@]}" echo -n "Ctrl-C to stop" trap cleanfpm SIGINT SIGTERM exit @@ -339,6 +339,7 @@ run() { stopfpm ;; *) + hiecho "${commandLine[@]}" "${commandLine[@]}" ;; esac