feat: Add message to web_get test

This commit is contained in:
zen0bit 2024-04-21 00:42:02 +02:00 committed by Martin Wimpress
parent 11a13d4342
commit 96cc14a322
1 changed files with 2 additions and 1 deletions

View File

@ -1248,7 +1248,8 @@ function web_get() {
echo "${URL}"
exit 0
elif [ "${just}" == 'test' ]; then
wget --spider "${URL}"
echo -n "Testing if $(echo "${URL}" | rev | cut -d'/' -f1 | rev) is available... "
wget -q --spider "${URL}" && echo 'Sucessfull' || echo 'ERROR!'
exit 0
elif [ "${just}" == 'download' ]; then
DIR="$(pwd)"