Created
February 7, 2020 00:10
-
-
Save RickyCook/6bf38804178e2688a5073f8b43f08b25 to your computer and use it in GitHub Desktop.
CodePipeline hack to "support" symlinks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CodePipeline doesn't support symlinks. They are reflected on | |
# disk as their target path in the file contents. | |
check_content_path = True | |
while check_content_path: | |
content = sql_path.read_text() | |
try: | |
new_sql_path = sql_path.parent.joinpath(content) | |
if new_sql_path.exists(): | |
sql_path = new_sql_path | |
else: | |
check_content_path = False | |
except Exception: | |
check_content_path = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment