#!/usr/bin/env bash

file='.chocolatey/headset.nuspec'

sed -i.bak "s|\(<version>\)\(.*\)\(</version>\)|\1$VERSION\3|g" $file
rm $file.bak

#!/usr/bin/env bash

file='windows/chocolatey/headset.nuspec'

sed -i "s|\(<version>\)\(.*\)\(</version>\)|\1$VERSION\3|g" $file

--- 
+++ 
@@ -1,6 +1,5 @@
 #!/usr/bin/env bash
 
-file='.chocolatey/headset.nuspec'
+file='windows/chocolatey/headset.nuspec'
 
-sed -i.bak "s|\(<version>\)\(.*\)\(</version>\)|\1$VERSION\3|g" $file
-rm $file.bak
+sed -i "s|\(<version>\)\(.*\)\(</version>\)|\1$VERSION\3|g" $file
Fix sed replace for nuspec file
