Update 'curl-Functions-authchecker.md'
This commit is contained in:
1 parent
7e973bfe94
commit
fc715574cd
1 file changed
+1
-1
@@ -31,7 +31,7 @@ local curlurl="$1"
|
|||||||
local curluser="$2"
|
local curluser="$2"
|
||||||
local curlpassword="$3"
|
local curlpassword="$3"
|
||||||
local curloutput="$4"
|
local curloutput="$4"
|
||||||
curl --fail --user "$curluser":"curlpassword" "$curlurl" -o "$curloutput"
|
curl --fail --user "$curluser":"$curlpassword" "$curlurl" -o "$curloutput"
|
||||||
local EC=$?
|
local EC=$?
|
||||||
if [ $EC -eq 0 ]; then
|
if [ $EC -eq 0 ]; then
|
||||||
echo "Password correct"
|
echo "Password correct"
|
||||||
|
|||||||
Reference in new issue
Block a user