Skip to content

Failing in func on Ubuntu #44

@blakilox

Description

@blakilox

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions