Change equality operator from bash to posix sh
authorAndreas 'ads' Scherbaum <ads@pgug.de>
Thu, 24 Mar 2022 09:32:27 +0000 (10:32 +0100)
committerDaniel Gustafsson <daniel@yesql.se>
Thu, 24 Mar 2022 09:32:27 +0000 (10:32 +0100)
The == operator is Bash specific, and since the script isn't Bash
specific the = operator should be used instead.

Author: Andreas 'ads' Scherbaum <ads@pgug.de>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/671fc8a3-8106-be8d-d6a6-325e19b8358f@pgug.de

pgweb/load_initial_data.sh

index 019b277e30c031328c3da277e6dd5a67b9cd0df9..af9a5fda99ae76c84e9734b0f5daefe8c6832fb5 100755 (executable)
@@ -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