diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-02-19 10:00:47 -0500 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-02-19 10:01:37 -0500 |
| commit | b707a6ab4bd8b98809c22e892e33315bfb1684c4 (patch) | |
| tree | 044af2939c4a432ab37b90ceb9a00a8027ae3d28 /scripts/preview | |
| parent | 996a1d0157193e32c6205469b42d6178f99f92c6 (diff) | |
Add minor script changes
Diffstat (limited to 'scripts/preview')
| -rwxr-xr-x | scripts/preview | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/preview b/scripts/preview index e3a0172..ff77782 100755 --- a/scripts/preview +++ b/scripts/preview @@ -16,6 +16,8 @@ elif grep -q "ISO" <<< "$filetype" ; then filetype="iso" elif grep -q "PDF" <<< "$filetype"; then filetype="pdf" +elif grep -q "SQLite 3" <<< "$filetype"; then + filetype="sqlite" fi case $filetype in @@ -41,6 +43,10 @@ case $filetype in pdftotext -nodiag -nopgbrk "$path" - | head -n "$remaining_lines" fi ;; + "sqlite") + file -b "$path" + sqlite3 -readonly "$path" ".schema" + ;; *) file -b "$path" ;; |
