1
0
forked from extern/nix-config

joshuto: Preview lock files

This commit is contained in:
Donovan Glover 2023-06-06 18:46:12 -04:00
parent d0c7ad0eee
commit 3a9fe397fc
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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;;