forked from extern/nix-config
joshuto: Preview lock files
This commit is contained in:
parent
d0c7ad0eee
commit
3a9fe397fc
@ -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;;
|
||||
|
Loading…
Reference in New Issue
Block a user