Skip to content

Commit

Permalink
Be less likely to use backslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmc3 committed Sep 22, 2023
1 parent c56c15c commit c1edde6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/__antidote_get_cachedir
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
fi

if [[ -n "$1" ]]; then
if [[ $result == *\\* ]]; then
if [[ $result == *\\* ]] && [[ $result != */* ]]; then
result+="\\$1"
else
result+="/$1"
Expand Down

0 comments on commit c1edde6

Please sign in to comment.