Issue Overview
Running setup.sh name fails with this error on MacOS:
sed: 1: "./setup.sh": invalid command code .
See video here (5:03)
Describe your environment
Running on MacOS M2
Steps to Reproduce
cd gitops-foundations-env-2892009
chmod +x setup.sh
./setup.sh name
Expected Behavior
Should change all the files that contains {dockerHubUsername} to name
Current Behavior
Fails with this error:
sed: 1: "./setup.sh": invalid command code .
Possible Solution
Changing the script to this:
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Please provide a value for {dockerHubUsername}"
exit 1
fi
find . -name '*.yaml' -type f -exec sed -i '' -E "s/{dockerHubUsername}/$1/g" {} +
Related Issues
Issue Overview
Running
setup.sh namefails with this error on MacOS:sed: 1: "./setup.sh": invalid command code .See video here (5:03)
Describe your environment
Running on MacOS M2
Steps to Reproduce
cd gitops-foundations-env-2892009chmod +x setup.sh./setup.sh nameExpected Behavior
Should change all the files that contains
{dockerHubUsername}tonameCurrent Behavior
Fails with this error:
sed: 1: "./setup.sh": invalid command code .Possible Solution
Changing the script to this:
Related Issues