Skip to content

Commit beb0cd8

Browse files
committed
chore: Apply copilot suggestions (MacOS compatibility and script check)
1 parent d594693 commit beb0cd8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/upgrades/dry-run.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@ if [ "${ARBITRUM_SEPOLIA_FORK}" == "true" ]; then
1313
elif [ "${ARBITRUM_FORK}" == "true" ]; then
1414
DEPLOYMENTS_FOLDER=arbitrum
1515
fi
16+
if [ -z "${DEPLOYMENTS_FOLDER}" ]; then
17+
echo "Error: You must set either ARBITRUM_SEPOLIA_FORK=true or ARBITRUM_FORK=true."
18+
exit 1
19+
fi
1620
# Copy the forked network deployments to the hardhat network folder.
1721
rm -rf deployments/hardhat
1822
cp -r deployments/${DEPLOYMENTS_FOLDER} deployments/hardhat
1923
# Stage the old deployments to have a clean diff after the upgrade script run.
2024
cp .gitignore .gitignore.bak
21-
sed -i '/deployments\/hardhat/d' .gitignore
25+
sed -i '' '/deployments\/hardhat/d' .gitignore
2226
git add deployments/hardhat
2327
# Run the upgrade and print the git diff.
2428
npx hardhat run scripts/upgrades/${UPGRADE_SCRIPT} --network hardhat

0 commit comments

Comments
 (0)