From: Sergey Matveev Date: Sun, 18 Feb 2024 19:33:35 +0000 (+0300) Subject: Trivial style fixes X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=b90a8671dd5879e07e8854546ec0fa53dc42efb7 Trivial style fixes --- diff --git a/bin/bin/music-indexer b/bin/bin/music-indexer index 02e3823..a1e837e 100755 --- a/bin/bin/music-indexer +++ b/bin/bin/music-indexer @@ -29,12 +29,12 @@ for name (*~cols) { album=(${ts[2,-1]}) } lossless="" - [[ -d $name ]] && { + if [[ -d $name ]] ; then wvs=($name/**/*.wv(N)) [[ ${#wvs} -gt 0 ]] && lossless=1 - } || { + else [[ $name:e = wv ]] && lossless=1 - } + fi cols=() for col ($COLS) [[ -e cols/$col/$name ]] && cols=($cols $col) diff --git a/bin/bin/my-ps2pdf b/bin/bin/my-ps2pdf index ba5af64..5510c18 100755 --- a/bin/bin/my-ps2pdf +++ b/bin/bin/my-ps2pdf @@ -5,7 +5,7 @@ # removes all empty metainformation fields, removed fields # with uuid:s, removes Format (that is application/pdf). -set -e +setopt ERR_EXIT opts=( -dQUIET -dBATCH diff --git a/bin/bin/zsnap b/bin/bin/zsnap index 90d08f6..7bab829 100755 --- a/bin/bin/zsnap +++ b/bin/bin/zsnap @@ -1,7 +1,6 @@ #!/usr/bin/env zsh -set -e -setopt EXTENDED_GLOB +setopt ERR_EXIT EXTENDED_GLOB usage() { cat <