From 9a8548badacc7229e7a9fb2b03d6f126ca80dd4c Mon Sep 17 00:00:00 2001 From: jasoveen Date: Tue, 4 Oct 2016 17:02:43 -0400 Subject: [PATCH] JQ was using relative path Changed call to JQ to use full path instead of relative path --- callbacks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/callbacks.sh b/callbacks.sh index a7d04e0..1cce7ba 100755 --- a/callbacks.sh +++ b/callbacks.sh @@ -107,8 +107,8 @@ case $operation in fi # Use jq to parse our JSON data - artist=$(echo $DATA | ./jq/jq -r ".artist") - title=$(echo $DATA | ./jq/jq -r ".title") + artist=$(echo $DATA | $(dirname $0)/jq/jq -r ".artist") + title=$(echo $DATA | $(dirname $0)/jq/jq -r ".title") # Try to grab artist if Media exists. This assumes the filename # is "Artist - Title.extension"