summaryrefslogtreecommitdiffstats
path: root/fb.in
diff options
context:
space:
mode:
Diffstat (limited to 'fb.in')
-rw-r--r--fb.in8
1 files changed, 2 insertions, 6 deletions
diff --git a/fb.in b/fb.in
index 40f4258..d4d60cf 100644
--- a/fb.in
+++ b/fb.in
@@ -159,13 +159,9 @@ if [ "$DELETE" ] || [ "$GET" ]; then
for i in "$@"; do
i=$(id_from_arg "$i")
if [ "$DELETE" ]; then
- if ! curl -n -L -A $USERAGENT "$PASTEBIN/file/delete/$i"; then
- EXITCODE=1
- fi
+ curl -n -L -A $USERAGENT "$PASTEBIN/file/delete/$i" || EXITCODE=1
elif [ "$GET" ]; then
- if ! curl -s -o - -A $USERAGENT "$PASTEBIN/$i"; then
- EXITCODE=1
- fi
+ curl -s -o - -A $USERAGENT "$PASTEBIN/$i" || EXITCODE=1
fi
done
elif [ $# -eq 0 ]; then