Skip to content

Commit

Permalink
scripts to grab private local env from home
Browse files Browse the repository at this point in the history
  • Loading branch information
rfl-urbaniak committed Sep 12, 2024
1 parent a723c64 commit 4c49ea9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ test_all: FORCE
test_notebooks: FORCE
./scripts/test_notebooks.sh

done: FORCE
./scripts/clean.sh
./scripts/lint.sh
./scripts/test.sh
./scripts/test_notebooks.sh
grab: FORCE
./scripts/grab.sh

api/requirements.txt: FORCE
pip-compile --extra api --output-file api/requirements.txt
Expand Down
22 changes: 22 additions & 0 deletions scripts/grab.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# This is a convenience script
# to source the .env_pw file from home
# if you have it

cd ~

if [ -f .env_pw ]; then
echo ".env_pw found, sourcing..."

source .env_pw

if [ -z "$PASSWORD" ]; then
echo "PASSWORD variable is not set."
else
echo "Sourced .env_pw successfully."
echo "Password: $PASSWORD"
fi
else
echo ".env_pw not found in the home directory."
fi

0 comments on commit 4c49ea9

Please sign in to comment.