File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44read_property () {
55 local property_key=$1
66 local property_file=$2
7- local property_value=$( grep -w " ${property_key} " " ${property_file} " | cut -d' =' -f2)
8- echo " ${property_value} "
7+ local property_value=$( grep -w " ${property_key} " " ${property_file} " | cut -d' =' -f2- )
8+ echo " ${property_value// \" } "
99}
1010
1111# Initialize variables with default empty values
3030 case $arg in
3131 agent_instance_url=* )
3232 agent_instance_url=" ${arg#* =} "
33+ agent_instance_url=" ${agent_instance_url// \" } "
3334 ;;
3435 agent_instance_secret=* )
3536 agent_instance_secret=" ${arg#* =} "
37+ agent_instance_secret=" ${agent_instance_secret// \" } "
3638 ;;
3739 git_url=* )
3840 git_url=" ${arg#* =} "
41+ git_url=" ${git_url// \" } "
3942 ;;
4043 * )
4144 echo " Unknown argument: $arg "
4245 ;;
4346 esac
4447done
4548
46-
4749# Check if any of the required properties are empty
4850if [ -z " $agent_instance_url " ]; then
4951 echo " Error: agent_instance_url is empty"
You can’t perform that action at this time.
0 commit comments