developer-guy
1 min readSep 3, 2020

--

if you are on macos , these sed commands above will throw an error like this :

sed: 1: "build.yaml": undefined label 'uild.yaml'

to fix this you need to add one more empty string between "-i" flag and the replacement string, for example :

$ sed -i "" "s/GHUSER/${GHUSER}/g" build.yaml

--

--

developer-guy
developer-guy

Written by developer-guy

🇹🇷KCD Turkey Organizer🎖Best Sigstore Evangelist🐦SSCS Twitter Community Admin✍️@chainguard_dev Fan📦Container Addict📅Organizer at @cloudnativetr•@devopstr

No responses yet