1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 06:38:07 +00:00
linux-insides/Scripts
SeongJae Park 50332b3b4b Scripts/latex: Fix shellcheck warnings
Shellcheck[1] gives below warnings for `latex.sh` as below.  Those are
not real problems for now, but fixing those would be helpful for future
update.  This commit therefore fixes those except the shebang position,
as the warning is for Shellcheck itself.

[1] https://www.shellcheck.net/

    $ shellcheck latex.sh
    In latex.sh line 1:
    # latex.sh
    ^-- SC2148: Tips depend on target shell and yours is unknown. Add a
    shebang.

    In latex.sh line 8:
    for D in $(ls ../); do
             ^-- SC2045: Iterating over ls output is fragile. Use globs.

    In latex.sh line 12:
            pandoc ../$D/README.md ../$D/linux-*.md -o build/$D.tex
    --template default
                      ^-- SC2086: Double quote to prevent globbing and word
    splitting.
                                      ^-- SC2086: Double quote to prevent
    globbing and word splitting.
                                                             ^-- SC2086:
    Double quote to prevent globbing and word splitting.

    In latex.sh line 16:
    cd ./build
    ^-- SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

    In latex.sh line 19:
        pdflatex -interaction=nonstopmode $f
                                          ^-- SC2086: Double quote to
    prevent globbing and word splitting.

    In latex.sh line 22:
    cd ../
    ^-- SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
2020-10-02 20:58:42 +02:00
..
get_all_links.py add one script to check one link is live or not 2018-03-17 09:16:55 -04:00
latex.sh Scripts/latex: Fix shellcheck warnings 2020-10-02 20:58:42 +02:00
LinuxKernelInsides.pdf Gitbook Links: replace old links with new ones 2020-05-31 17:23:17 +02:00
README.md move latex.sh to Scripts folder 2018-03-20 14:40:36 -04:00

Scripts

Description

get_all_links.py : justify one link is live or dead with network connection

latex.sh : a script for converting Markdown files in each of the subdirectories into a unified PDF typeset in LaTeX

Usage

get_all_links.py :

./get_all_links.py ../

latex.sh :

./latex.sh