mac fixes

This commit is contained in:
shocknet-justin 2025-11-26 22:36:12 -05:00
parent 740f518895
commit 471464905f
3 changed files with 23 additions and 16 deletions

View file

@ -101,7 +101,7 @@ mktemp_in() {
json_value() {
local key="$1"
if [ "$OS" = "Mac" ]; then
echo "$2" | grep "\"${key}\"" | awk -F'"' '{print $4}' | head -1
echo "$2" | grep "\"${key}\"" | awk -F'"' '{print $4; exit}'
else
echo "$2" | grep -oP "\"${key}\": \"\\K[^\"]+"
fi