mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-08-09 15:32:27 +08:00
13 lines
225 B
Bash
13 lines
225 B
Bash
#!/bin/bash
|
|
# Convert nginx autoindex url to download link.
|
|
if [ -z "$1" ];then
|
|
echo "Error param."
|
|
exit 0
|
|
fi
|
|
|
|
URL=$1
|
|
|
|
for uri in $(curl -k -s $URL |grep '<a href' |grep -o "\".*\"");do
|
|
echo "$URL${uri//\"}"
|
|
done
|