initial printonly feature

Prints out url in webget
TODO: zsync and edge cases
This commit is contained in:
Phil Clifford 2022-02-20 22:28:08 +00:00
parent d67f864957
commit fb498a201a

View File

@ -573,6 +573,11 @@ function web_get() {
local LOCALFILE=""
local URL="${1}"
if [ ${ONLY_PRINT_URL} ] ; then
echo "${URL}"
exit 0
fi
if [ -n "${3}" ]; then
FILE="${3}"
else
@ -1969,6 +1974,9 @@ if [ $# -lt 1 ]; then
fi
while [ $# -gt 0 ]; do
case "${1}" in
-onlyprint|--onlyprint|-showurl|--showurl|-op|--op)
ONLY_PRINT_URL=true
shift;;
-isodir|--isodir)
ISODIR="${2}"
shift