initial printonly feature
Prints out url in webget TODO: zsync and edge cases
This commit is contained in:
parent
d67f864957
commit
fb498a201a
8
quickget
8
quickget
@ -573,6 +573,11 @@ function web_get() {
|
|||||||
local LOCALFILE=""
|
local LOCALFILE=""
|
||||||
local URL="${1}"
|
local URL="${1}"
|
||||||
|
|
||||||
|
if [ ${ONLY_PRINT_URL} ] ; then
|
||||||
|
echo "${URL}"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "${3}" ]; then
|
if [ -n "${3}" ]; then
|
||||||
FILE="${3}"
|
FILE="${3}"
|
||||||
else
|
else
|
||||||
@ -1969,6 +1974,9 @@ if [ $# -lt 1 ]; then
|
|||||||
fi
|
fi
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
|
-onlyprint|--onlyprint|-showurl|--showurl|-op|--op)
|
||||||
|
ONLY_PRINT_URL=true
|
||||||
|
shift;;
|
||||||
-isodir|--isodir)
|
-isodir|--isodir)
|
||||||
ISODIR="${2}"
|
ISODIR="${2}"
|
||||||
shift
|
shift
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user