From e3e9c20356647c8f0fd97feb4067d2de85c23eda Mon Sep 17 00:00:00 2001 From: cswimr Date: Sat, 12 Oct 2024 00:06:59 -0400 Subject: [PATCH] forgot one! --- .zshc/func.zsh | 2 ++ 1 file changed, 2 insertions(+) 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 }