Skip to content

Commit 1bab38b

Browse files
authored
Make script more portable by changing == to = (wrf-model#1871)
TYPE: bug fix KEYWORDS: configure script, use '=' vs '==' SOURCE: Chris Bridgham DESCRIPTION OF CHANGES: Problem: The newly added test in v4.5 in configure script could fail due to less portable use '==' as in ``` if [ $rpc_type == "rpc" ]; then ``` Solution: Change the above to ``` if [ $rpc_type = "rpc" ]; then ``` ISSUE: For use when this PR closes an issue. Fixes wrf-model#1869 LIST OF MODIFIED FILES: M configure TESTS CONDUCTED: 1. Yes. 2. The Jenkins tests are all passing.
1 parent c10e788 commit 1bab38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ rm -f tools/rpc_test.log
10431043

10441044
if [ -f tools/rpc_test.exe ] ; then
10451045
rpc_type=`tools/rpc_test.exe`
1046-
if [ $rpc_type == "rpc" ]; then
1046+
if [ $rpc_type = "rpc" ]; then
10471047
sed -e '/^CFLAGS_LOCAL/s/#/-DRPC_TYPES=1 &/' configure.wrf > configure.wrf.edit
10481048
else
10491049
sed -e '/^CFLAGS_LOCAL/s/#/-DRPC_TYPES=2 &/' configure.wrf > configure.wrf.edit

0 commit comments

Comments
 (0)