Skip to content

Commit

Permalink
Fix error in bump-version script that created an invalid AssemblyInfo…
Browse files Browse the repository at this point in the history
… file
  • Loading branch information
rickyah committed Jun 6, 2015
1 parent e7290ab commit 4296baa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions set-version → bump-version
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ fi
VERSION=$1
VERSION_REGEX1='\[assembly: AssemblyVersion\("(.*)"\)\]'
VERSION_REGEX2='\[assembly: AssemblyFileVersion\("(.*)"\)\]'
NEW_VERSION_REPLACE='\[assembly: AssemblyVersion\("'$VERSION'"\)\]'
NEW_VERSION_REPLACE1='\[assembly: AssemblyVersion\("'$VERSION'"\)\]'
NEW_VERSION_REPLACE2='\[assembly: AssemblyFileVersion\("'$VERSION'"\)\]'

echo "Changing file $FILE_PATH to version $VERSION"

eval "sed -r --in-place 's/$VERSION_REGEX1/$NEW_VERSION_REPLACE/g;' $FILE_PATH"
eval "sed -r --in-place 's/$VERSION_REGEX2/$NEW_VERSION_REPLACE/g;' $FILE_PATH"
eval "sed -r --in-place 's/$VERSION_REGEX1/$NEW_VERSION_REPLACE1/g;' $FILE_PATH"
eval "sed -r --in-place 's/$VERSION_REGEX2/$NEW_VERSION_REPLACE2/g;' $FILE_PATH"

exit 0

0 comments on commit 4296baa

Please sign in to comment.