Fix karen

This commit is contained in:
Aaron Dewes 2022-01-09 17:32:29 +01:00
parent 48c29993dd
commit 6c36bce3f3
2 changed files with 4 additions and 2 deletions

View File

@ -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):

2
karen
View File

@ -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