Erik
Erik
CDCloudflare Developers
Created by Erik on 2/21/2024 in #pages-help
Build script permissions issue
Apparently the replacement line is doing exactly what sed -i does automatically, only it isn't throwing the preserving permissions errors. Any idea what's causing this? I'd love to make sure I'm not doing something in violation of Cloudflare policies or about to experience more problems, given how these just started showing up out of the blue.
3 replies
CDCloudflare Developers
Created by Erik on 2/21/2024 in #pages-help
Build script permissions issue
Well, not sure if anyone's seen this, but I have an update all the same. A stackexchange article suggested replacing the sed -i command with a redirect, which seems to have suppressed the errors. No idea why this was necessary, but here's what I did - I replaced lines like this:
sed -i "1,4d" dynamic-page-loader.tsv
sed -i "1,4d" dynamic-page-loader.tsv
with roughly equivalent lines like this:
sed "1,4d" dynamic-page-loader.tsv >dynamic-page-loader.tmp && mv dynamic-page-loader.tmp dynamic-page-loader.tsv
sed "1,4d" dynamic-page-loader.tsv >dynamic-page-loader.tmp && mv dynamic-page-loader.tmp dynamic-page-loader.tsv
3 replies