Skip to content

Commit 2ebba65

Browse files
author
yan
committed
Make sed -i work consistently on OSX and linux
1 parent 5df0523 commit 2ebba65

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

makexpi.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ rm -r pkg/xpi-eff/chrome/content/rules
139139
cp -a src/ pkg/xpi-amo/
140140
rm -r pkg/xpi-amo/chrome/content/rules
141141
# The AMO version of the package cannot contain the updateKey or updateURL tags
142-
sed -i -e '/updateKey/d' -e '/updateURL/d' pkg/xpi-amo/install.rdf
142+
sed -i.bak -e '/updateKey/d' -e '/updateURL/d' pkg/xpi-amo/install.rdf
143+
rm pkg/xpi-amo/install.rdf.bak
143144

144145
# Used for figuring out which branch to pull from when viewing source for rules
145146
GIT_OBJECT_FILE=".git/refs/heads/master"

0 commit comments

Comments
 (0)