Add rushlink --screenshot. #41
@ -31,6 +31,9 @@ del() {
|
|||||||
URL="$LINK$1"
|
URL="$LINK$1"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
# Remove file extension, if any.
|
||||||
|
NAME="${URL##*/}"
|
||||||
|
URL="${URL%/*}/${NAME%%.*}"
|
||||||
if DELURL=$(grep -s -m1 "$URL?deleteToken=" "$DELFILE"); then
|
if DELURL=$(grep -s -m1 "$URL?deleteToken=" "$DELFILE"); then
|
||||||
echo "Deleting $URL..." >&2
|
echo "Deleting $URL..." >&2
|
||||||
curl -sS -X DELETE "$DELURL" | grep deleted
|
curl -sS -X DELETE "$DELURL" | grep deleted
|
||||||
|
Loading…
Reference in New Issue
Block a user