pmaports/luna/libpbnjson/replace-bash-with-sh.patch
Alex Roth 196d555092 Merge Luna work into master (#945)
Contains everything from #940, except on top of master now.
Also added a postmarketos-ui-luna package to be a meta-
package for all of the Luna work.

Every component included here builds & runs, but isn't
functional without a handful more packages.
2017-11-29 23:29:26 +00:00

24 lines
760 B
Diff

diff --git a/src/pbnjson_c/validation/apply_lemon.sh b/src/pbnjson_c/validation/apply_lemon.sh
index 0d445cf..7f08034 100755
--- a/src/pbnjson_c/validation/apply_lemon.sh
+++ b/src/pbnjson_c/validation/apply_lemon.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# @@@LICENSE
#
@@ -34,13 +34,11 @@ token_keywords=`grep TOKEN $source_dir/schema_keywords.gperf | grep -o "TOKEN_${
if [ "$found_keywords" != "$all_keywords" ]; then
echo >&2 "any_object_key doesn't contain all the keywords"
- diff <(echo "$found_keywords") <(echo "$all_keywords")
exit 1
fi
if [ "$expected_tokens" != "$token_keywords" ]; then
echo >&2 "schema_keywords.gperf doesn't contain all the keywords"
- diff <(echo "$token_keywords") <(echo "$expected_tokens")
exit 1
fi