mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
16 lines
373 B
Bash
16 lines
373 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Script to run liccheck using poetry, because we use poetry but liccheck uses
|
||
|
# requirements.txt.
|
||
|
|
||
|
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
||
|
set -euo pipefail
|
||
|
|
||
|
if ! command -v which; then
|
||
|
echo "You must have poetry installed to run this script."
|
||
|
fi
|
||
|
|
||
|
poetry export --without-hashes --output requirements.txt
|
||
|
liccheck
|
||
|
rm -f requirements.txt
|