Pelo que entendi a man page (de curl), a opção -n
apenas permite procurar por um arquivo .netrc
, mas não espera o caminho do arquivo deste arquivo. Esta é a opção --netrc-file
. Do man-page:
--netrc-file
This option is similar to --netrc, except that you provide the
path (absolute or relative) to the netrc file that Curl should use.
You can only specify one netrc file per invocation. If several
--netrc-file options are provided, only the last one will be used.
(Added in 7.21.5)
This option overrides any use of --netrc as they are mutually
exclusive. It will also abide by --netrc-optional if specified.