diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 09:45:30 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | 48bcf8ee6e92445b01f792f1c52af012ba05b7b4 (patch) | |
tree | 8470d64bef7527511a947574fdcf85ee0561490c | |
parent | 09e8b1d21953ad8ba5185b3cb02bbd4b35269963 (diff) |
global-functions: $FetchHuge: passing boolean to function is still broken... 🤨
-rw-r--r-- | global-functions.rsc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/global-functions.rsc b/global-functions.rsc index 47a69c4..6fec6dd 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -427,9 +427,9 @@ # fetch huge data to file, read in chunks :set FetchHuge do={ - :local ScriptName [ :tostr $1 ]; - :local Url [ :tostr $2 ]; - :local CheckCert [ :tobool $3 ]; + :local ScriptName [ :tostr $1 ]; + :local Url [ :tostr $2 ]; + :local CheckCert [ :tostr $3 ]; :global CleanName; :global FetchUserAgentStr; @@ -439,7 +439,7 @@ :global MkDir; :global WaitForFile; - :set CheckCert [ $IfThenElse ($CheckCert = false) "no" "yes-without-crl" ]; + :set CheckCert [ $IfThenElse ($CheckCert = "false") "no" "yes-without-crl" ]; :local DirName ("tmpfs/" . [ $CleanName $ScriptName ]); :if ([ $MkDir $DirName ] = false) do={ |