summaryrefslogtreecommitdiffstats
path: root/fb.in
diff options
context:
space:
mode:
Diffstat (limited to 'fb.in')
-rw-r--r--fb.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/fb.in b/fb.in
index 05ac03e..d1f80bb 100644
--- a/fb.in
+++ b/fb.in
@@ -172,7 +172,12 @@ if [ "$DELETE" ] || [ "$GET" ]; then
for i in "$@"; do
i=$(id_from_arg "$i")
if [ "$DELETE" ]; then
- $LIBDIR/fb-helper d "$PASTEBIN/file/delete/$i" || EXITCODE=1
+ if $LIBDIR/fb-helper d "$PASTEBIN/file/delete/$i"; then
+ sed -i "/$i/d" $FBHIST
+ else
+ EXITCODE=1
+ fi
+
elif [ "$GET" ]; then
if [ "$COMPRESS" = "1" ]; then
require_executable zcat