Skip to content

Commit

Permalink
use double brackets in test if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Feb 18, 2025
1 parent 93e0b4f commit c80b25f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
echo "see if shared library made"
set -xe

if [ ! -f ../wgrib2/libwgrib2.so -a ! -f ../wgrib2/libwgrib2.a && ! -f ../wgrib2/libwgrib2.dylib ] ; then
if [[ ! -f ../wgrib2/libwgrib2.so -a ! -f ../wgrib2/libwgrib2.a && ! -f ../wgrib2/libwgrib2.dylib ]] ; then
echo "failed: did not find libwgrib2"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion tests/test_shared_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
echo "see if shared library made"
set -xe

if [ ! -f ../wgrib2/libwgrib2.so && ! -f ../wgrib2/libwgrib2.dylib ] ; then
if [[ ! -f ../wgrib2/libwgrib2.so && ! -f ../wgrib2/libwgrib2.dylib ]] ; then
echo "failed: did not find shared library"
exit 1
fi
Expand Down

0 comments on commit c80b25f

Please sign in to comment.