Skip to content

Commit

Permalink
fix: Fix permissions for creating file
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Reymann authored and Timo Reymann committed Nov 11, 2021
1 parent 1f465d1 commit 05a5e9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/scripts/create-trigger-pipeline-script.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
echo "Create file in ${CIRCLECI_TRIGGER_PIPELINE_SCRIPT_PATH} ..."
cat <<TEXT > "${CIRCLECI_TRIGGER_PIPELINE_SCRIPT_PATH}"
cat <<TEXT > /tmp/trigger-pipeline.tmp
#!/usr/bin/env python3
import time
import urllib.request
Expand Down Expand Up @@ -85,5 +85,7 @@ if __name__ == "__main__":
print_pair("ID", parsed_response['id'])
TEXT

sudo mv /tmp/trigger-pipeline.tmp "${CIRCLECI_TRIGGER_PIPELINE_SCRIPT_PATH}"

echo "Making file ${CIRCLECI_TRIGGER_PIPELINE_SCRIPT_PATH} executable ..."
chmod +x "${CIRCLECI_TRIGGER_PIPELINE_SCRIPT_PATH}"
sudo chmod +x "${CIRCLECI_TRIGGER_PIPELINE_SCRIPT_PATH}"

0 comments on commit 05a5e9f

Please sign in to comment.