cswimr/home
Archived
Template
1
0
Fork 0

forgot one!

This commit is contained in:
Seaswimmer 2024-10-12 00:06:59 -04:00
parent 7211c25809
commit e3e9c20356
Signed by: cswimr
GPG key ID: A9C162E867C851FA

View file

@ -78,11 +78,13 @@ function zipline {
if $use_send_notify; then if $use_send_notify; then
notify-send -a "$name" -u low -c transfer.complete -i "$file" -h "string:desktop-entry:$desktopentry" "Upload Successful" "Link copied to clipboard:\n$link" notify-send -a "$name" -u low -c transfer.complete -i "$file" -h "string:desktop-entry:$desktopentry" "Upload Successful" "Link copied to clipboard:\n$link"
fi fi
rm -f "$temp_file"
else else
echo "Upload failed. Error message: $(<"$temp_file")" echo "Upload failed. Error message: $(<"$temp_file")"
if $use_send_notify; then if $use_send_notify; then
notify-send -a "$name" -u critical -c transfer.error -h "string:desktop-entry $desktopentry" "Upload Failed" "$(<"$temp_file")" notify-send -a "$name" -u critical -c transfer.error -h "string:desktop-entry $desktopentry" "Upload Failed" "$(<"$temp_file")"
fi fi
rm -f "$temp_file"
return 1 return 1
fi fi
} }