From 62a2e6be808a8a212e0e04c871b5073fbb6d358f Mon Sep 17 00:00:00 2001 From: spinach <19keegandeppe@gmail.com> Date: Sun, 29 Jan 2023 18:57:22 -0500 Subject: [PATCH] fixed gojq null return --- bluebikes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluebikes b/bluebikes index a017d34..bf5cc18 100755 --- a/bluebikes +++ b/bluebikes @@ -181,7 +181,7 @@ print_status() { id=$(printf '"%d"' $STATION_ID) ALIAS=$(cat "$ALIASES_FILE" | gojq ".$id" | tr -d '"') - if [[ ! -z "$ALIAS" ]] ; then + if [[ "$ALIAS" != "null" ]] ; then # if there is an alias STATION_NAME="$ALIAS" fi