From 1f507fdb382eef5529df3e1d5cb0ba526f72ae8d Mon Sep 17 00:00:00 2001 From: Esteban Vincent Date: Tue, 19 May 2026 11:18:45 +0200 Subject: [PATCH] chore: move env files to per-script env directory --- .gitignore | 2 +- envs/.env.template | 2 ++ scripts/get_graph_user.sh | 2 +- scripts/imgflip-meme.sh | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 envs/.env.template diff --git a/.gitignore b/.gitignore index 4c49bd7..03bd412 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -.env +*.env diff --git a/envs/.env.template b/envs/.env.template new file mode 100644 index 0000000..252028f --- /dev/null +++ b/envs/.env.template @@ -0,0 +1,2 @@ +# Each script that needs to use the environment variables should have a env file with the same name as the script +# For example, if you have a script called `train.sh`, you should create a file called `train.env`. diff --git a/scripts/get_graph_user.sh b/scripts/get_graph_user.sh index eb7965d..c34d4d8 100755 --- a/scripts/get_graph_user.sh +++ b/scripts/get_graph_user.sh @@ -15,7 +15,7 @@ USER_ID="$1" -ENV_FILE="$HOME/Raycast/scripts/.env" +ENV_FILE="$HOME/Raycast/envs/get_graph_user.env" if [[ ! -f "$ENV_FILE" ]]; then echo "❌ .env not found at $ENV_FILE" exit 1 diff --git a/scripts/imgflip-meme.sh b/scripts/imgflip-meme.sh index 6c56300..a808e78 100755 --- a/scripts/imgflip-meme.sh +++ b/scripts/imgflip-meme.sh @@ -13,7 +13,7 @@ # @raycast.description Generate a meme via imgflip webhook and copy image to clipboard # @raycast.author Esteban Vincent -ENV_FILE="$HOME/Raycast/scripts/.env" +ENV_FILE="$HOME/Raycast/envs/imgflip-meme.env" if [[ ! -f "$ENV_FILE" ]]; then echo "❌ .env not found at $ENV_FILE" exit 1