From c1edde6ba32cc2f6432b47bc584556b2cd29730d Mon Sep 17 00:00:00 2001 From: mattmc3 Date: Fri, 22 Sep 2023 14:40:16 -0400 Subject: [PATCH] Be less likely to use backslashes --- functions/__antidote_get_cachedir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/__antidote_get_cachedir b/functions/__antidote_get_cachedir index 114d93c..a3555f0 100644 --- a/functions/__antidote_get_cachedir +++ b/functions/__antidote_get_cachedir @@ -19,7 +19,7 @@ fi if [[ -n "$1" ]]; then - if [[ $result == *\\* ]]; then + if [[ $result == *\\* ]] && [[ $result != */* ]]; then result+="\\$1" else result+="/$1"