Drop unnecessary trap
If we are using a file, the trap is not defined in the first place, so we don't need to undefined it.
This commit is contained in:
parent
86fbb6daba
commit
0cff8e7c41
1
imgbb
1
imgbb
@ -279,7 +279,6 @@ else
|
|||||||
image_source_description="file '$filepath'"
|
image_source_description="file '$filepath'"
|
||||||
TMP_IMG="$filepath" # Use the provided file path directly.
|
TMP_IMG="$filepath" # Use the provided file path directly.
|
||||||
echo "Using image from file: $filepath"
|
echo "Using image from file: $filepath"
|
||||||
trap '' EXIT # Clear trap if we are not using temp files.
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build curl options.
|
# Build curl options.
|
||||||
|
Loading…
Reference in New Issue
Block a user