diff --git a/.zshc/func.zsh b/.zshc/func.zsh index 00f697d..cb1b19b 100644 --- a/.zshc/func.zsh +++ b/.zshc/func.zsh @@ -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 }