Skip to content

Commit

Permalink
added env activation
Browse files Browse the repository at this point in the history
  • Loading branch information
jovi1994 committed Oct 20, 2024
1 parent 281294b commit 6006c66
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion steps/filter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@
set -e
set -o pipefail

source venv/bin/activate
if [ -f "venv/bin/activate" ]; then
# shellcheck source=venv/bin/activate disable=SC1091
. venv/bin/activate
else
echo "Error: venv/bin/activate not found. Please make sure the virtual environment is set up."
exit 1
fi
mkdir -p "${TARGET}/temp/reports"
find "${LOCAL}/filters" -type f -name '*.sh' -exec realpath --relative-to="${LOCAL}/filters" {} \; | sort | while IFS= read -r filter; do
tex=${TARGET}/temp/reports/${filter}.tex
Expand Down
8 changes: 7 additions & 1 deletion steps/report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ rm -f "${list}"
touch "${list}"

java=${TARGET}/temp/Foo.java
source venv/bin/activate
if [ -f "venv/bin/activate" ]; then
# shellcheck source=venv/bin/activate disable=SC1091
. venv/bin/activate
else
echo "Error: venv/bin/activate not found. Please make sure the virtual environment is set up."
exit 1
fi
mkdir -p "$(dirname "${java}")"
find "${LOCAL}/metrics" -type f -executable -exec basename {} \; | while IFS= read -r m; do
echo "class Foo {}" > "${java}"
Expand Down

0 comments on commit 6006c66

Please sign in to comment.