5 lines
163 B
Bash
Executable File
5 lines
163 B
Bash
Executable File
#!/bin/sh
|
|
[ -z "$1" ] && echo 'usage: pind <url>' && exit 1
|
|
read url < <(curl -Ls "$1" | pup 'img attr{src}')
|
|
curl -LO --no-clobber $url && echo "$url downloaded"
|