File size: 352 Bytes
d26280a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#!/bin/bash
project_dir="/project"
# Run the gpt engineer script
gpt-engineer $project_dir "$@"
# Patch the permissions of the generated files to be owned by nobody except prompt file
for item in "$project_dir"/*; do
if [[ "$item" != "$project_dir/prompt" ]]; then
chown -R nobody:nogroup "$item"
chmod -R 777 "$item"
fi
done
|