From 6c36bce3f3f39246182bd9af6b288bbcc990b30b Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Sun, 9 Jan 2022 17:32:29 +0100 Subject: [PATCH] Fix karen --- app/lib/citadelutils.py | 4 +++- karen | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/lib/citadelutils.py b/app/lib/citadelutils.py index 0d80aff..d383d61 100644 --- a/app/lib/citadelutils.py +++ b/app/lib/citadelutils.py @@ -5,7 +5,9 @@ import re # Helper functions -# Return a list of env vars in a string, supports both $NAMĀ§ and ${NAME} format for the env var + + +# Return a list of env vars in a string, supports both $NAME and ${NAME} format for the env var # This can potentially be used to get around permissions, so this check is critical for security # Please report any security vulnerabilities you find in this check to aaron.dewes@protonmail.com def getEnvVars(string: str): diff --git a/karen b/karen index 20a0041..669174e 100755 --- a/karen +++ b/karen @@ -67,7 +67,7 @@ fswatch -0 --event=PlatformSpecific $signal_dir | while read -d "" event; do # If the signal starts wih app-, the trigger is "$trigger_dir/app" # and the args are the rest of the signal - if [[ "$signal" =~ ^app- ]]; then + if [[ "$signal" =~ ^app- ]] && [[ "$signal" != "app-update" ]]; then trigger="$trigger_dir/app" args="${signal#"app-"}" fi