Improve wget input parsing

This commit is contained in:
sagie gur ari 2020-01-24 15:37:12 +00:00
parent 16f89b4871
commit 95917edb77
3 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
## CHANGELOG
### v0.1.9
* Improve wget input parsing
### v0.1.8 (2020-01-24)
* Move test directory command to public std namespace to enable duckscript unit testing

View file

@ -2055,7 +2055,7 @@ for scope::wget::arg in ${scope::wget::arguments}
elif starts_with ${scope::wget::arg} --post-data=
scope::wget::len = strlen --post-data=
scope::wget::payload = substring ${scope::wget::arg} ${scope::wget::len}
elif starts_with ${scope::wget::arg} -O
elif equals ${scope::wget::arg} -O
scope::wget::lookingfor = set file
end
elif equals ${scope::wget::lookingfor} file

View file

@ -12,7 +12,7 @@ for scope::wget::arg in ${scope::wget::arguments}
elif starts_with ${scope::wget::arg} --post-data=
scope::wget::len = strlen --post-data=
scope::wget::payload = substring ${scope::wget::arg} ${scope::wget::len}
elif starts_with ${scope::wget::arg} -O
elif equals ${scope::wget::arg} -O
scope::wget::lookingfor = set file
end
elif equals ${scope::wget::lookingfor} file