diff --git a/modules/joshuto/preview.sh b/modules/joshuto/preview.sh index 0c1d308b..f85e064e 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;;