Skip to content

Commit 380d028

Browse files
committed
fix file path for manual changes diff
1 parent 9fd8fc9 commit 380d028

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

monorepo-migration/migrate.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,10 @@ if [[ "${SKIP_TESTS:-false}" != "true" ]]; then
565565
fi
566566

567567
# 7.12 Apply manual changes
568-
if [[ -f "~/${SOURCE_REPO_NAME}.diff" ]]; then
569-
echo "Applying diff from ${SOURCE_REPO_NAME}.diff..."
570-
git apply "~/${SOURCE_REPO_NAME}.diff"
568+
MANUAL_CHANGES_DIFF=$(realpath "~/${SOURCE_REPO_NAME}.diff")
569+
if [[ -f "${MANUAL_CHANGES_DIFF}" ]]; then
570+
echo "Applying diff from ${MANUAL_CHANGES_DIFF}..."
571+
git apply "${MANUAL_CHANGES_DIFF}"
571572
echo "Committing diff..."
572573
git add .
573574
git commit -am "manual changes"

0 commit comments

Comments
 (0)