aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-02-25 00:36:21 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-02-25 00:48:36 -0800
commit0d56e91e004a3cbfa5be2d9168dfe5b3bf2b1164 (patch)
treeb6a55f3d499c38e12ec2cd93c55c05e0a25941de
parent293a9bc811e35943cc4d1dbdcbf20bbf77ac8c2f (diff)
downloadbun-0d56e91e004a3cbfa5be2d9168dfe5b3bf2b1164.tar.gz
bun-0d56e91e004a3cbfa5be2d9168dfe5b3bf2b1164.tar.zst
bun-0d56e91e004a3cbfa5be2d9168dfe5b3bf2b1164.zip
Update bun-install-lockfile-status.sh
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