From 4701a5863325310abd788b2bdc45ae0c7f99ffef Mon Sep 17 00:00:00 2001 From: Lee Jones Date: Mon, 3 Nov 2025 14:59:36 +0000 Subject: [PATCH] imgbb: Repair expiration handling when in Select Mode Signed-off-by: Lee Jones --- imgbb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgbb b/imgbb index 5dd332e..7c17f64 100755 --- a/imgbb +++ b/imgbb @@ -311,8 +311,8 @@ if [ "$select_mode" = "true" ]; then # Build full options for this mode, starting with base. curl_opts=("${curl_opts_base[@]}") - if [ -n "$expire_seconds" ]; then curl_opts_base+=(--form "expiration=$expire_seconds"); fi - if [ -n "$custom_name" ]; then curl_opts_base+=(--form "name=$custom_name"); fi + if [ -n "$expire_seconds" ]; then curl_opts+=(--form "expiration=$expire_seconds"); fi + if [ -n "$custom_name" ]; then curl_opts+=(--form "name=$custom_name"); fi # Add mode-specific image source (stdin) and the API URL. curl_opts+=(--form "image=@-;filename=screenshot.png") curl_opts+=("$imgbb_api_url")