aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--integration/apps/bun-install-lockfile-status.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/integration/apps/bun-install-lockfile-status.sh b/integration/apps/bun-install-lockfile-status.sh
index c20bb32b2..b23b4fc3c 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