From 11aaa66f55c233a108dba8e76263d5eed26f3eec Mon Sep 17 00:00:00 2001 From: Andreas 'ads' Scherbaum Date: Thu, 24 Mar 2022 10:32:27 +0100 Subject: [PATCH] Change equality operator from bash to posix sh The == operator is Bash specific, and since the script isn't Bash specific the = operator should be used instead. Author: Andreas 'ads' Scherbaum Reviewed-by: Daniel Gustafsson Discussion: https://postgr.es/m/671fc8a3-8106-be8d-d6a6-325e19b8358f@pgug.de --- pgweb/load_initial_data.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgweb/load_initial_data.sh b/pgweb/load_initial_data.sh index 019b277e..af9a5fda 100755 --- a/pgweb/load_initial_data.sh +++ b/pgweb/load_initial_data.sh @@ -10,6 +10,6 @@ read R cd $(dirname $0) -if [ "$R" == "yes" ]; then +if [ "$R" = "yes" ]; then find . -name data.json | xargs ../manage.py loaddata fi