Skip to content

Commit adc8ab9

Browse files
committed
stability2
1 parent 8e316a0 commit adc8ab9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.devtools/assemble.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,16 @@ sed "${sed_opts[@]}" 's|\(.*"drupal\/core.*"\): "\(.*\)",.*|\1: '"\"~$DRUPAL_VER
109109
grep '"drupal/core-.*": "' "build/composer.json"
110110

111111
note "Updating stability to ${drupal_version_stability}."
112+
# Do not rely on the values coming from the scaffold and always set them.
112113
sed "${sed_opts[@]}" 's|\(.*"minimum-stability"\): "\(.*\)",.*|\1: '"\"${drupal_version_stability}\",|" "build/composer.json"
113114
grep 'minimum-stability' "build/composer.json"
114115

116+
drupal_version_prefer_stable="true"
115117
if [ "${drupal_version_stability}" != "stable" ]; then
116-
sed "${sed_opts[@]}" 's|\(.*"prefer-stable"\): \(.*\),.*|\1: false,|' "build/composer.json"
117-
grep 'prefer-stable' "build/composer.json"
118+
drupal_version_prefer_stable="false"
118119
fi
120+
sed "${sed_opts[@]}" 's|\(.*"prefer-stable"\): \(.*\),.*|\1: '${drupal_version_prefer_stable}',|' "build/composer.json"
121+
grep 'prefer-stable' "build/composer.json"
119122

120123
pass "Drupal codebase created."
121124

0 commit comments

Comments
 (0)