-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts to grab private local env from home
- Loading branch information
1 parent
a723c64
commit 4c49ea9
Showing
2 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |