Browse Source

refactor: default args for run

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1002 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
dd7e0168dc
  1. 10
      devel/run

10
devel/run

@ -43,11 +43,11 @@ if [[ ! -z $1 ]]; then
type=$1
shift
if [[ ! -z $1 ]]; then
args=("$@")
elif [[ -z $args ]]; then
args=(devel.php)
fi
args=("$@")
fi
if [[ -z ${args[0]} ]]; then
args=(devel.php)
fi
case "$type" in

Loading…
Cancel
Save