Commit 3b3b9399 by 据说甜蜜呢

添加()

parent 38ffbe62
Pipeline #4090 passed with stage
in 15 seconds
...@@ -4,14 +4,14 @@ set -e ...@@ -4,14 +4,14 @@ set -e
function GetServices() function GetServices()
{ {
declare svcs=$(ls -l ./src/Services | awk 'NR>1') declare svcs=($(ls -l ./src/Services | awk 'NR>1'))
eval $1="${svcs}" eval $1="${svcs}"
} }
function GetServiceName() function GetServiceName()
{ {
declare prefix=${1} declare prefix=${1}
declare name=$(ls ./src/Services/${prefix}|head -n 1|xargs -d '/' echo) declare name=($(ls ./src/Services/${prefix}|head -n 1|xargs -d '/' echo))
eval $2="${name}" eval $2="${name}"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment