diff --git a/Scripts/patch-assembly-info.sh b/Scripts/patch-assembly-info.sh index 19cd2b6..afc5120 100755 --- a/Scripts/patch-assembly-info.sh +++ b/Scripts/patch-assembly-info.sh @@ -2,5 +2,4 @@ # cd ../../ DIRTY=$([[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]] && echo "*") INFO=$(echo "(`git rev-parse --abbrev-ref HEAD`\/`git describe --always`$DIRTY `date`)") -# echo "$INFO" -sed -i-unpatched "s/AssemblyInformationalVersion.*/AssemblyInformationalVersion(\"$INFO\")]/g" Properties/AssemblyInfo.cs +sed -i "s/AssemblyInformationalVersion.*/AssemblyInformationalVersion(\"$INFO\")]/g" Properties/AssemblyInfo.cs diff --git a/Scripts/unpatch-assembly-info.sh b/Scripts/unpatch-assembly-info.sh index 1bd4d46..4635841 100755 --- a/Scripts/unpatch-assembly-info.sh +++ b/Scripts/unpatch-assembly-info.sh @@ -1,2 +1,2 @@ # unpatch AssemblyInfo -mv Properties/AssemblyInfo.cs-unpatched Properties/AssemblyInfo.cs \ No newline at end of file +sed -i "s/AssemblyInformationalVersion.*/AssemblyInformationalVersion(\"\")]/g" Properties/AssemblyInfo.cs \ No newline at end of file