From 0d56e91e004a3cbfa5be2d9168dfe5b3bf2b1164 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 25 Feb 2022 00:36:21 -0800 Subject: [PATCH] Update bun-install-lockfile-status.sh --- integration/apps/bun-install-lockfile-status.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/integration/apps/bun-install-lockfile-status.sh b/integration/apps/bun-install-lockfile-status.sh index c20bb32b25..b23b4fc3ce 100644 --- a/integration/apps/bun-install-lockfile-status.sh +++ b/integration/apps/bun-install-lockfile-status.sh @@ -32,11 +32,6 @@ diff <(echo "$ORIG_LOCKFILE") <(echo "$NEW_LOCKFILE") || { exit 1 } -[[ -z $(git status --untracked-files=no --porcelain) ]] || { - echo "ERR: Expected empty git status, got '$(git status --untracked-files=no --porcelain)'" - exit 1 -} - ORIG_HASH=$($BUN_BIN bun.lockb --hash) $BUN_BIN remove react @@ -44,12 +39,10 @@ $BUN_BIN add react NEW_HASH=$($BUN_BIN bun.lockb --hash) -if "$ORIG_HASH" != "$NEW_HASH"; then +diff <(echo "$ORIG_HASH") <(echo "$NEW_HASH") || { echo "ERR: Expected hash to be unchanged, got '$NEW_HASH'" exit 1 -fi - -[ +} echo '{ "dependencies": { "react": "17.0.2", "react-dom": "17.0.2" } }' >package.json