forgot one!
This commit is contained in:
parent
7211c25809
commit
e3e9c20356
1 changed files with 2 additions and 0 deletions
|
@ -78,11 +78,13 @@ function zipline {
|
|||
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"
|
||||
fi
|
||||
rm -f "$temp_file"
|
||||
else
|
||||
echo "Upload failed. Error message: $(<"$temp_file")"
|
||||
if $use_send_notify; then
|
||||
notify-send -a "$name" -u critical -c transfer.error -h "string:desktop-entry $desktopentry" "Upload Failed" "$(<"$temp_file")"
|
||||
fi
|
||||
rm -f "$temp_file"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
|
Reference in a new issue