Skip to content

Commit

Permalink
test to see if short name is null
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Feb 12, 2024
1 parent 4f1145b commit c6b1917
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
SHORT_NAME=$(jq '.items[0].umm.ShortName' cmr_metadata.json)
SHORT_NAME=$(echo "$SHORT_NAME" | sed 's/"//g')
if [ -n "$SHORT_NAME" ]; then
if [ -n "$SHORT_NAME" ] && [ "$SHORT_NAME" != "null" ]; then
echo "Short Name: $SHORT_NAME"
break
else
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
SHORT_NAME=$(jq '.items[0].umm.ShortName' cmr_metadata.json)
SHORT_NAME=$(echo "$SHORT_NAME" | sed 's/"//g')
if [ -n "$SHORT_NAME" ]; then
if [ -n "$SHORT_NAME" ] && [ "$SHORT_NAME" != "null" ]; then
echo "Short Name: $SHORT_NAME"
break
else
Expand Down

0 comments on commit c6b1917

Please sign in to comment.