support BSD and GNU sed in tests

This commit is contained in:
Hans-Christoph Steiner 2016-02-15 16:17:24 +01:00
parent c91b715a15
commit 2983f3505d

View file

@ -506,7 +506,7 @@ test -e repo/index.jar
grep -F '<application id=' repo/index.xml > /dev/null grep -F '<application id=' repo/index.xml > /dev/null
# now set fake repo_keyalias # now set fake repo_keyalias
sed -i 's,^ *repo_keyalias.*,repo_keyalias = "fake",' $REPOROOT/config.py sed -i.tmp 's,^ *repo_keyalias.*,repo_keyalias = "fake",' $REPOROOT/config.py
set +e set +e
$fdroid update $fdroid update
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then