Skip to content

Commit

Permalink
fix permission issue on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Dec 13, 2023
1 parent b33cb51 commit bef96b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/cli/playground
Original file line number Diff line number Diff line change
Expand Up @@ -13977,7 +13977,7 @@ playground_topic_produce_command() {
;;
protobuf)
# https://github.com/JasonkayZK/mock-protobuf.js
docker run --rm -v $tmp_dir:/tmp/ -v $schema_file:/app/schema.proto -e NB_MESSAGES=$nb_messages_to_generate vdesabou/protobuf-faker > $tmp_dir/out.json
docker run -u0 --rm -v $tmp_dir:/tmp/ -v $schema_file:/app/schema.proto -e NB_MESSAGES=$nb_messages_to_generate vdesabou/protobuf-faker bash -c "bash /app/produce.sh && chown -R $(id -u $USER):$(id -g $USER) /tmp/" > $tmp_dir/out.json
;;
raw)
if jq -e . >/dev/null 2>&1 <<< "$(cat "$schema_file")"
Expand Down
2 changes: 1 addition & 1 deletion scripts/cli/src/topic_produce_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ function generate_data() {
;;
protobuf)
# https://github.com/JasonkayZK/mock-protobuf.js
docker run --rm -v $tmp_dir:/tmp/ -v $schema_file:/app/schema.proto -e NB_MESSAGES=$nb_messages_to_generate vdesabou/protobuf-faker > $tmp_dir/out.json
docker run -u0 --rm -v $tmp_dir:/tmp/ -v $schema_file:/app/schema.proto -e NB_MESSAGES=$nb_messages_to_generate vdesabou/protobuf-faker bash -c "bash /app/produce.sh && chown -R $(id -u $USER):$(id -g $USER) /tmp/" > $tmp_dir/out.json
;;
raw)
if jq -e . >/dev/null 2>&1 <<< "$(cat "$schema_file")"
Expand Down

0 comments on commit bef96b7

Please sign in to comment.