Skip to content

Commit

Permalink
fix: use json num instead of string (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
smtmfft authored May 24, 2024
1 parent 2591b0a commit 9bcb44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function update_raiko_sgx_instance_id() {
if [[ -n $SGX_INSTANCE_ID ]]; then
jq \
--arg update_value "$SGX_INSTANCE_ID" \
'.sgx.instance_id = $update_value' $CONFIG_FILE \
'.sgx.instance_id = ($update_value | tonumber)' $CONFIG_FILE \
>/tmp/config_tmp.json && mv /tmp/config_tmp.json $CONFIG_FILE
echo "Update old sgx instance id to $SGX_INSTANCE_ID"
fi
Expand Down

0 comments on commit 9bcb44a

Please sign in to comment.