diff --git a/{{ cookiecutter.project_name }}/.sync_readme_to_index.sh b/{{ cookiecutter.project_name }}/.sync_readme_to_index.sh index bfddc5a..037a78c 100755 --- a/{{ cookiecutter.project_name }}/.sync_readme_to_index.sh +++ b/{{ cookiecutter.project_name }}/.sync_readme_to_index.sh @@ -4,7 +4,7 @@ README="README.md" INDEX="notebooks/index.md" BASE="$(mktemp)" trap 'rm -f "$BASE"' EXIT -if git show HEAD:"$README" > "$BASE" 2>/dev/null; then +if git show HEAD:"./$README" > "$BASE" 2>/dev/null; then git merge-file --diff3 "$INDEX" "$BASE" "$README" else cp "$README" "$INDEX"