We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a4bccd commit a116681Copy full SHA for a116681
scripts/prepare-for-release
@@ -125,7 +125,8 @@ update_versions() {
125
echo -e "🥑 Attempting to update NTH release version in preparation for a new release."
126
127
for f in "${FILES[@]}"; do
128
- has_incorrect_version=$(cat $f | grep $PREVIOUS_VERSION)
+ # do not exit if grep doesn't find $PREVIOUS_VERSION; continue to exit on all other exit codes
129
+ has_incorrect_version=$(cat $f | grep $PREVIOUS_VERSION || [[ $? == 1 ]])
130
if [[ ! -z $has_incorrect_version ]]; then
131
sed -i '' "s/$PREVIOUS_VERSION/$LATEST_VERSION/g" $f
132
FILES_CHANGED+=("$f")
0 commit comments