From 3a9fe397fcbef399ec5aee0a2c56316439ecca38 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 6 Jun 2023 18:46:12 -0400 Subject: [PATCH] joshuto: Preview lock files --- modules/joshuto/preview.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/joshuto/preview.sh b/modules/joshuto/preview.sh index 0c1d308..f85e064 100755 --- a/modules/joshuto/preview.sh +++ b/modules/joshuto/preview.sh @@ -29,6 +29,10 @@ realpath=$(realpath "$FILE_PATH") handle_extension() { case "${FILE_EXTENSION_LOWER}" in + lock) + cat "${FILE_PATH}" && exit 0 + exit 1;; + rar) unrar lt -p- -- "${FILE_PATH}" && exit 0 exit 1;;