File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
read_property () {
5
5
local property_key=$1
6
6
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// \" } "
9
9
}
10
10
11
11
# Initialize variables with default empty values
30
30
case $arg in
31
31
agent_instance_url=* )
32
32
agent_instance_url=" ${arg#* =} "
33
+ agent_instance_url=" ${agent_instance_url// \" } "
33
34
;;
34
35
agent_instance_secret=* )
35
36
agent_instance_secret=" ${arg#* =} "
37
+ agent_instance_secret=" ${agent_instance_secret// \" } "
36
38
;;
37
39
git_url=* )
38
40
git_url=" ${arg#* =} "
41
+ git_url=" ${git_url// \" } "
39
42
;;
40
43
* )
41
44
echo " Unknown argument: $arg "
42
45
;;
43
46
esac
44
47
done
45
48
46
-
47
49
# Check if any of the required properties are empty
48
50
if [ -z " $agent_instance_url " ]; then
49
51
echo " Error: agent_instance_url is empty"
You can’t perform that action at this time.
0 commit comments