From 27c3c453827f3719da82babdf1bf101e096806ff Mon Sep 17 00:00:00 2001 From: Chris Swan <478926+cpswan@users.noreply.github.com> Date: Tue, 24 Oct 2023 09:22:34 -0400 Subject: [PATCH] fix: Check for presence of file rather than absence --- update_requirements.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_requirements.sh b/update_requirements.sh index fc1900e..90c9bb0 100755 --- a/update_requirements.sh +++ b/update_requirements.sh @@ -3,7 +3,7 @@ # update the requirements.txt, which is what we actually use to pull # in our Python dependencies. So we need to run this to generate a # new requirements.txt from the updated files. -if ! [ -f poetry.lock ]; then +if [ -f poetry.lock ]; then rm poetry.lock fi poetry export --format requirements.txt --output requirements.txt