mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-26 04:31:21 +02:00
joshuto: Preview lock files
This commit is contained in:
parent
d0c7ad0eee
commit
3a9fe397fc
@ -29,6 +29,10 @@ realpath=$(realpath "$FILE_PATH")
|
|||||||
|
|
||||||
handle_extension() {
|
handle_extension() {
|
||||||
case "${FILE_EXTENSION_LOWER}" in
|
case "${FILE_EXTENSION_LOWER}" in
|
||||||
|
lock)
|
||||||
|
cat "${FILE_PATH}" && exit 0
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
rar)
|
rar)
|
||||||
unrar lt -p- -- "${FILE_PATH}" && exit 0
|
unrar lt -p- -- "${FILE_PATH}" && exit 0
|
||||||
exit 1;;
|
exit 1;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user