-
Notifications
You must be signed in to change notification settings - Fork 756
Open
Description
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-2892009chmod +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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels