Skip to content

Commit 6bae684

Browse files
committed
Avoid unusual file-quoting issues breaking check for encrypted files by not checking file name directly
1 parent dbec0b0 commit 6bae684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

transcrypt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ _list_encrypted_files() {
181181
# Only output names of encrypted files matching the context, either
182182
# strictly (if $1 = "true") or loosely (if $1 is false or unset)
183183
if [[ "$strict_context" == "true" ]] && \
184-
[[ "$check" == "${file}: filter: crypt${CONTEXT_CRYPT_SUFFIX:-}" ]]
184+
[[ "$check" == *": filter: crypt${CONTEXT_CRYPT_SUFFIX:-}" ]]
185185
then
186186
echo "$file"
187-
elif [[ "$check" == "${file}: filter: crypt${CONTEXT_CRYPT_SUFFIX:-}"* ]]; then
187+
elif [[ "$check" == *": filter: crypt${CONTEXT_CRYPT_SUFFIX:-}"* ]]; then
188188
echo "$file"
189189
fi
190190
done

0 commit comments

Comments
 (0)