Introduction
Introduction Statistics Contact Development Disclaimer Help
pointer: fix when output filename matches globbing pattern - annna - Annna the …
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 7502ed4b8cd521c8bf45a27e65e07db56798cfd6
parent 23974837d3bcf9cf3df07dadd0eff57cd846e7d8
Author: Anders Damsgaard <[email protected]>
Date: Fri, 17 Feb 2023 15:05:54 +0100
pointer: fix when output filename matches globbing pattern
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M pointer | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
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"
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.