From 09c214f93967df7a84b8f21878e10b43b9b04b3e Mon Sep 17 00:00:00 2001 From: yage Date: Thu, 20 Jul 2023 15:19:12 -0600 Subject: [PATCH] v3.3.1 ===================================================================== --- Bug Fixes ---------------------------- - fixed a bug with creating environment files for new scwrypts groups --- zsh/lib/scwrypts/environment-files.module.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/lib/scwrypts/environment-files.module.zsh b/zsh/lib/scwrypts/environment-files.module.zsh index 77800e9..33f50e0 100644 --- a/zsh/lib/scwrypts/environment-files.module.zsh +++ b/zsh/lib/scwrypts/environment-files.module.zsh @@ -43,6 +43,10 @@ SCWRYPTS__GET_ENV_FILE() { SCWRYPTS__GET_ENV_NAMES | grep -q $NAME \ || { ERROR "no environment '$NAME' exists"; return 1; } + [ -f "$SCWRYPTS_ENV_PATH/$GROUP/$NAME" ] || { + mkdir -p "$SCWRYPTS_ENV_PATH/$GROUP" + touch "$SCWRYPTS_ENV_PATH/$GROUP/$NAME" + } [ -f "$SCWRYPTS_ENV_PATH/$GROUP/$NAME" ] \ || { ERROR "missing environment file for '$GROUP/$NAME'"; return 2; } }