]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
update-requirements.sh: Write intermediate file
authorZack Cerza <zack@redhat.com>
Thu, 20 Jan 2022 21:58:48 +0000 (14:58 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 16 Feb 2022 02:36:54 +0000 (19:36 -0700)
The previous method was only writing the .txt file; when debugging
dependency issues you'll often want to see the intermediate. I don't
see a reason to not always write it.

Signed-off-by: Zack Cerza <zack@redhat.com>
update-requirements.sh

index c72e2e8aebad9a3615268eb9330ff61fae6791b7..1334538441eb86162ffa87fc3cc01ab2dfae4d10 100755 (executable)
@@ -1,3 +1,4 @@
 #!/bin/bash
 
-pip-compile $@ requirements.in -qo- | sed -e '/^-e / d' -e 's/-r requirements.in/teuthology/g' > requirements.txt
+pip-compile $@ requirements.in
+sed -i'' -e '/^-e / d' -e 's/-r requirements.in/teuthology/g' requirements.txt
\ No newline at end of file