Add rushlink --screenshot. #41

Merged
electricdusk merged 2 commits from mara/rushlink:master into master 2020-03-26 09:37:32 +01:00
Showing only changes of commit 8403ad2258 - Show all commits

View File

@ -31,6 +31,9 @@ del() {
URL="$LINK$1"
;;
esac
# Remove file extension, if any.
NAME="${URL##*/}"
URL="${URL%/*}/${NAME%%.*}"
if DELURL=$(grep -s -m1 "$URL?deleteToken=" "$DELFILE"); then
echo "Deleting $URL..." >&2
curl -sS -X DELETE "$DELURL" | grep deleted