From 05ea8549459ce2135a7a5d3badba327f15f715be Mon Sep 17 00:00:00 2001 From: shove Date: Sat, 27 Apr 2019 18:22:20 +0800 Subject: [PATCH] Fix: #2279 - MacOS std.json.JSONException@std/json.d(155): JSONValue is not a string Fixed 2279 --- setup-mac.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup-mac.sh b/setup-mac.sh index 1c38ecb8bb..fa5f8b5b34 100755 --- a/setup-mac.sh +++ b/setup-mac.sh @@ -26,8 +26,8 @@ USER_ID=$(dscl . -read /Users/_www UniqueID | sed "s/[^:]*: //") GROUP_ID=$(dscl . -read /Groups/_www PrimaryGroupID | sed "s/[^:]*: //") mkdir -p $(dirname $CONFIG_FILE) echo -e '{ - "uid": '$USER_ID', - "gid": '$GROUP_ID' + "uid": "'$USER_ID'", + "gid": "'$GROUP_ID'" }' >$CONFIG_FILE # if everything went fine