Skip to content

Commit 8c5fa82

Browse files
committed
fix relative path to diff
1 parent f04c958 commit 8c5fa82

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

monorepo-migration/migrate.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,10 +478,10 @@ fi
478478

479479
# 7.8b Migrate owlbot.py
480480
echo "Migrating owlbot.py..."
481-
if [ -f "$SOURCE_DIR/owlbot.py" ]; then
481+
if [ -f "$SOURCE_DIR/$SOURCE_REPO_NAME/owlbot.py" ]; then
482482
TARGET_OWLBOT="$SOURCE_REPO_NAME/owlbot.py"
483483

484-
python3 "$TRANSFORM_OWLBOT_SCRIPT" "$TARGET_OWLBOT" "$SOURCE_DIR/owlbot.py"
484+
python3 "$TRANSFORM_OWLBOT_SCRIPT" "$TARGET_OWLBOT" "$SOURCE_DIR/$SOURCE_REPO_NAME/owlbot.py"
485485

486486
echo "Committing owlbot.py migration..."
487487
git add "$TARGET_OWLBOT"
@@ -565,7 +565,7 @@ if [[ "${SKIP_TESTS:-false}" != "true" ]]; then
565565
fi
566566

567567
# 7.12 Apply manual changes
568-
MANUAL_CHANGES_DIFF=$(realpath "~/${SOURCE_REPO_NAME}.diff")
568+
MANUAL_CHANGES_DIFF=$(realpath "${HOME}/${SOURCE_REPO_NAME}.diff")
569569
if [[ -f "${MANUAL_CHANGES_DIFF}" ]]; then
570570
echo "Applying diff from ${MANUAL_CHANGES_DIFF}..."
571571
git apply "${MANUAL_CHANGES_DIFF}"

0 commit comments

Comments
 (0)