You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following command from the readme.md: find . -type f -name 'example-*' -exec sh -c 'cp -rf "$0" "${0/example-/}"' {} \;
gave me the following error when running inside nitro-docker folder:
./example-.cms.env: 1: Bad substitution
./nitro/example-ui-config.json: 1: Bad substitution
./nitro/example-renderer-config.json: 1: Bad substitution
The solution:
This command will copy and removes example- from the files, and if the copy is successful, it will remove the original files. find . -type f -name 'example-*' | while read -r file; do new_file=$(echo "$file" | sed 's/example-//'); cp -rf "$file" "$new_file" && rm "$file"; done
Advice
The command could be included inside the automated command list at readme.md:
The following command from the readme.md:
find . -type f -name 'example-*' -exec sh -c 'cp -rf "$0" "${0/example-/}"' {} \;
gave me the following error when running inside nitro-docker folder:
The solution:
This command will copy and removes example- from the files, and if the copy is successful, it will remove the original files.
find . -type f -name 'example-*' | while read -r file; do new_file=$(echo "$file" | sed 's/example-//'); cp -rf "$file" "$new_file" && rm "$file"; done
Advice
The command could be included inside the automated command list at readme.md:
Or... you could modify the existing command from readme.md at the top
The text was updated successfully, but these errors were encountered: