• Vincent Pelletier's avatar
    shell/caucase.sh: Make shellcheck happy. · 3540d427
    Vincent Pelletier authored
    Do not rely on test's -a & -o.
    Escape backslashes which are intended as literals.
    Avoid one useless "cat".
    Avoid testing $?.
    Simplify "is integer ?" test.
    Quote a few variable expansions.
    Arithmetic expression does not need explicit expansion.
    Split declaration and assignment to unmask status.
    Disable shellcheck warning about "local" being undefined in POSIX.
    3540d427
caucase.sh 30.8 KB