Skip to content

Commit a72b359

Browse files
authored
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.
1 parent 6c92f85 commit a72b359

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/termux-toast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ while getopts :hsc:b:g: option
1919
do
2020
case "$option" in
2121
h) show_usage;;
22-
s) PARAMS=" --ez short true";;
22+
s) PARAMS+=" --ez short true";;
2323
c) PARAMS+=" --es text_color $OPTARG";;
2424
b) PARAMS+=" --es background $OPTARG";;
2525
g) PARAMS+=" --es gravity $OPTARG";;

0 commit comments

Comments
 (0)