diff --git a/.local/bin/scripts/chexec b/.local/bin/scripts/chexec index 37b913d..33b9107 100755 --- a/.local/bin/scripts/chexec +++ b/.local/bin/scripts/chexec @@ -1,3 +1,3 @@ #!/bin/sh -ex # Set exec flag on all files that should be executable -find -maxdepth 4 -name "*.sh" "$@" -exec chmod +x {} + +find -maxdepth 4 -name "*.sh" "$@" -exec chmod -v +x {} + diff --git a/.local/bin/scripts/ex b/.local/bin/scripts/ex index 6aefd61..35c0103 100755 --- a/.local/bin/scripts/ex +++ b/.local/bin/scripts/ex @@ -5,6 +5,11 @@ # and shows progress indications for some operations # optdepends: rewrite(part of my dotfiles, for unzip line rewriting) 7z p7zip unzip # TODO auto-delete archive, auto-extract in current dir, trim .tar.gz fully +if test $# -eq 0 +then ex *.zip + exit +fi + for arg do case $arg in (-d) del=$(expr ${del:-0} + 1);; diff --git a/.local/bin/scripts/sign b/.local/bin/scripts/sign index 620e827..814f360 100755 --- a/.local/bin/scripts/sign +++ b/.local/bin/scripts/sign @@ -23,6 +23,7 @@ export TEXMF="" pdfjam $quiet "$signature" --outfile "$sig" --papersize "{595pt, 842pt}" --noautoscale true \ --offset "${h}pt ${v}pt" --scale "${4:-1}" pdfjam $quiet "$1" last "$sig" --outfile "$tmp_signed" --delta "0 -842pt" --nup "1x2" --fitpaper true +# TODO consider pdftk stamp timg "$tmp_signed"