From a72b359948a91b73d22178d7507db04fa947b4a3 Mon Sep 17 00:00:00 2001 From: Oj18 Date: Sat, 23 Mar 2019 18:49:38 +0000 Subject: [PATCH] Fixed termux-toast to allow -s (short) anywhere Before, -s had to be used at the very start, as it would completely overwrite the params string instead of appending. This simple fix just makes it append instead of overwrite. --- scripts/termux-toast | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/termux-toast b/scripts/termux-toast index 528d40f..95bd865 100755 --- a/scripts/termux-toast +++ b/scripts/termux-toast @@ -19,7 +19,7 @@ while getopts :hsc:b:g: option do case "$option" in h) show_usage;; - s) PARAMS=" --ez short true";; + s) PARAMS+=" --ez short true";; c) PARAMS+=" --es text_color $OPTARG";; b) PARAMS+=" --es background $OPTARG";; g) PARAMS+=" --es gravity $OPTARG";;