pointer: fix when output filename matches globbing pattern - annna - Annna the nice friendly bot.
 (HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
       ---
 (DIR) commit 7502ed4b8cd521c8bf45a27e65e07db56798cfd6
 (DIR) parent 23974837d3bcf9cf3df07dadd0eff57cd846e7d8
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Fri, 17 Feb 2023 15:05:54 +0100
       
       pointer: fix when output filename matches globbing pattern
       
       Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
       
       Diffstat:
         M pointer                             |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/pointer b/pointer
       @@ -27,6 +27,7 @@ esac
        
        n="${1##*/}"
        n="${n%.*}"
       +tmp="$(mktemp).jpg"
        convert \
                \( \
                        +append \
       @@ -40,5 +41,4 @@ convert \
                -draw "text +10,+10 '${n}'" \
                -gravity northeast \
                -draw "text -422,+20 '*${n}'" \
       -        "$2"
       -
       +        "$tmp" && mv "$tmp" "$2"