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
|
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
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue