Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing in func on Ubuntu #44

Open
blakilox opened this issue Feb 3, 2021 · 0 comments
Open

Failing in func on Ubuntu #44

blakilox opened this issue Feb 3, 2021 · 0 comments

Comments

@blakilox
Copy link

blakilox commented Feb 3, 2021

Hi Bug Report
lib/func.sh
When at the very last $NEXTURL a parse error is thrown in Ubuntu (funny seems ok in Centos)
What it does is tries to curl a Null URL (and that also throws an exception on my firewall)
I was able to fix that
please consider this code or something similar around line 38
also this fix may be required elsewhere in the code

        elif [ "$PAGSTATUS0" == "previous" ]; then
            NEXTURL=`echo $jDOMAINSp | jq -r .links[1].href`
            if [ "$NEXTURL" == "null" ]
            then
                break
            else
            jDOMAINSp=`curl -A "rsdns/$RSDNS_VERSION (https://github.com/linickx/rsdns)" -k -s -X GET -H X-Auth-Token:\ $TOKEN $NEXTURL`
            fi
            #echo $jDOMAINSp
            jDOMAINS+=$jDOMAINSp
        else
            break
        fi

Thanks for developing this it is a really handy Library
Regards Garry Hill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant