webbyuu / gpt-engineer /docker /entrypoint.sh
NahFam13's picture
z1
d26280a verified
raw
history blame contribute delete
352 Bytes
#!/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