@@ -884,17 +884,17 @@ parse_ignore() {
884
884
continue
885
885
fi
886
886
# Strip any trailing CR character.
887
- yaml_line=${yaml_line% $carriage_return }
887
+ yaml_line=" ${yaml_line% " $carriage_return " } "
888
888
889
889
case $yaml_line in
890
890
[!\ ]* :* )
891
891
# Split $yaml_line into a $yaml_key, $yaml_value pair.
892
892
yaml_keyvalue " $yaml_line "
893
893
# Set the $pkgmeta_phase for stateful processing.
894
- pkgmeta_phase=$yaml_key
894
+ pkgmeta_phase=" $yaml_key "
895
895
;;
896
896
[\ ]* " - " * )
897
- yaml_line=${yaml_line# " ${yaml_line%% [! ]* } " } # trim leading whitespace
897
+ yaml_line=" ${yaml_line# " ${yaml_line%% [! ]* } " } " # trim leading whitespace
898
898
# Get the YAML list item.
899
899
yaml_listitem " $yaml_line "
900
900
if [[ " $pkgmeta_phase " == " ignore" || " $pkgmeta_phase " == " plain-copy" ]] && [[ $yaml_item == " $sub_path " * ]]; then
@@ -943,14 +943,14 @@ if [ -f "$pkgmeta_file" ]; then
943
943
continue
944
944
fi
945
945
# Strip any trailing CR character.
946
- yaml_line=${yaml_line% $carriage_return }
946
+ yaml_line=" ${yaml_line% " $carriage_return " } "
947
947
948
948
case $yaml_line in
949
949
[!\ ]* :* )
950
950
# Split $yaml_line into a $yaml_key, $yaml_value pair.
951
951
yaml_keyvalue " $yaml_line "
952
952
# Set the $pkgmeta_phase for stateful processing.
953
- pkgmeta_phase=$yaml_key
953
+ pkgmeta_phase=" $yaml_key "
954
954
955
955
case $yaml_key in
956
956
enable-nolib-creation)
@@ -967,14 +967,14 @@ if [ -f "$pkgmeta_file" ]; then
967
967
license=$yaml_value
968
968
;;
969
969
manual-changelog)
970
- changelog=$yaml_value
970
+ changelog=" $yaml_value "
971
971
manual_changelog=" true"
972
972
;;
973
973
changelog-title)
974
974
project=" $yaml_value "
975
975
;;
976
976
package-as)
977
- package=$yaml_value
977
+ package=" $yaml_value "
978
978
;;
979
979
wowi-create-changelog)
980
980
if [ " $yaml_value " = " no" ]; then
@@ -1021,12 +1021,12 @@ if [ -f "$pkgmeta_file" ]; then
1021
1021
manual-changelog)
1022
1022
case $yaml_key in
1023
1023
filename)
1024
- changelog=$yaml_value
1024
+ changelog=" $yaml_value "
1025
1025
manual_changelog=" true"
1026
1026
;;
1027
1027
markup-type)
1028
1028
if [ " $yaml_value " = " markdown" ] || [ " $yaml_value " = " html" ]; then
1029
- changelog_markup=$yaml_value
1029
+ changelog_markup=" $yaml_value "
1030
1030
else
1031
1031
changelog_markup=" text"
1032
1032
fi
@@ -1865,14 +1865,14 @@ parse_ignore "$pkgmeta_file"
1865
1865
1866
1866
# Checkout the external into a ".checkout" subdirectory of the final directory.
1867
1867
checkout_external () {
1868
- _external_dir=$1
1869
- _external_uri=$2
1870
- _external_tag=$3
1871
- _external_type=$4
1868
+ local _external_dir=" $1 "
1869
+ local _external_uri=" $2 "
1870
+ local _external_tag=" $3 "
1871
+ local _external_type=" $4 "
1872
1872
# shellcheck disable=SC2034
1873
- _external_slug=$5 # unused until we can easily fetch the project id
1874
- _external_checkout_type=$6
1875
- _external_path=$7
1873
+ local _external_slug=" $5 " # unused until we can easily fetch the project id
1874
+ local _external_checkout_type=" $6 "
1875
+ local _external_path=" $7 "
1876
1876
1877
1877
_cqe_checkout_dir=" $pkgdir /$_external_dir /.checkout"
1878
1878
if [[ -d $_cqe_checkout_dir ]]; then
@@ -2109,7 +2109,7 @@ if [ -z "$skip_externals" ] && [ -f "$pkgmeta_file" ]; then
2109
2109
continue
2110
2110
fi
2111
2111
# Strip any trailing CR character.
2112
- yaml_line=${yaml_line% $carriage_return }
2112
+ yaml_line=" ${yaml_line% " $carriage_return " } "
2113
2113
2114
2114
case $yaml_line in
2115
2115
[!\ ]* :* )
@@ -2118,10 +2118,10 @@ if [ -z "$skip_externals" ] && [ -f "$pkgmeta_file" ]; then
2118
2118
# Split $yaml_line into a $yaml_key, $yaml_value pair.
2119
2119
yaml_keyvalue " $yaml_line "
2120
2120
# Set the $pkgmeta_phase for stateful processing.
2121
- pkgmeta_phase=$yaml_key
2121
+ pkgmeta_phase=" $yaml_key "
2122
2122
;;
2123
2123
" " * )
2124
- yaml_line=${yaml_line# " ${yaml_line%% [! ]* } " } # trim leading whitespace
2124
+ yaml_line=" ${yaml_line# " ${yaml_line%% [! ]* } " } " # trim leading whitespace
2125
2125
case $yaml_line in
2126
2126
" - " * )
2127
2127
;;
@@ -2131,30 +2131,30 @@ if [ -z "$skip_externals" ] && [ -f "$pkgmeta_file" ]; then
2131
2131
case $pkgmeta_phase in
2132
2132
externals)
2133
2133
case $yaml_key in
2134
- url) external_uri=$yaml_value ;;
2134
+ url) external_uri=" $yaml_value " ;;
2135
2135
tag)
2136
- external_tag=$yaml_value
2137
- external_checkout_type=$yaml_key
2136
+ external_tag=" $yaml_value "
2137
+ external_checkout_type=" $yaml_key "
2138
2138
;;
2139
2139
branch)
2140
- external_tag=$yaml_value
2141
- external_checkout_type=$yaml_key
2140
+ external_tag=" $yaml_value "
2141
+ external_checkout_type=" $yaml_key "
2142
2142
;;
2143
2143
commit)
2144
- external_tag=$yaml_value
2145
- external_checkout_type=$yaml_key
2144
+ external_tag=" $yaml_value "
2145
+ external_checkout_type=" $yaml_key "
2146
2146
;;
2147
- type) external_type=$yaml_value ;;
2148
- curse-slug) external_slug=$yaml_value ;;
2149
- path) external_path=$yaml_value ;;
2147
+ type) external_type=" $yaml_value " ;;
2148
+ curse-slug) external_slug=" $yaml_value " ;;
2149
+ path) external_path=" $yaml_value " ;;
2150
2150
* )
2151
2151
# Started a new external, so checkout any queued externals.
2152
2152
process_external
2153
2153
2154
- external_dir=$yaml_key
2154
+ external_dir=" $yaml_key "
2155
2155
nolib_exclude=" $nolib_exclude $pkgdir /$external_dir /*"
2156
2156
if [ -n " $yaml_value " ]; then
2157
- external_uri=$yaml_value
2157
+ external_uri=" $yaml_value "
2158
2158
# Immediately checkout this fully-specified external.
2159
2159
process_external
2160
2160
fi
0 commit comments