Commit 4296baa 1 parent e7290ab commit 4296baa Copy full SHA for 4296baa
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 16
16
VERSION=$1
17
17
VERSION_REGEX1='\[assembly: AssemblyVersion\("(.*)"\)\]'
18
18
VERSION_REGEX2='\[assembly: AssemblyFileVersion\("(.*)"\)\]'
19
- NEW_VERSION_REPLACE='\[assembly: AssemblyVersion\("'$VERSION'"\)\]'
19
+ NEW_VERSION_REPLACE1='\[assembly: AssemblyVersion\("'$VERSION'"\)\]'
20
+ NEW_VERSION_REPLACE2='\[assembly: AssemblyFileVersion\("'$VERSION'"\)\]'
20
21
21
22
echo "Changing file $FILE_PATH to version $VERSION"
22
23
23
- eval "sed -r --in-place 's/$VERSION_REGEX1/$NEW_VERSION_REPLACE /g;' $FILE_PATH"
24
- eval "sed -r --in-place 's/$VERSION_REGEX2/$NEW_VERSION_REPLACE /g;' $FILE_PATH"
24
+ eval "sed -r --in-place 's/$VERSION_REGEX1/$NEW_VERSION_REPLACE1 /g;' $FILE_PATH"
25
+ eval "sed -r --in-place 's/$VERSION_REGEX2/$NEW_VERSION_REPLACE2 /g;' $FILE_PATH"
25
26
26
27
exit 0
You can’t perform that action at this time.
0 commit comments