Nomad artifact download error empty string is not a valid pathspec

Hi,
I am using Hashicorp Nomad version 1.9.~. I am running a periodic job and am mounting /usr/local/fccreport into the chrooted enviroment. The ssh_keys are stored in /usr/local/fccreport.
My artifact stanza looks like this:

artifact {
source = “git::git@wiki.sysmetrics.testing.com:fcc/fcc.git”
destination = “/usr/local/fccreport”
options {
sshkey = “${base64encode(file(pathexpand(”/usr/local/fccreport/.ssh/id_rsa")))}"
}
}

The files from the repo are cloned into /usr/local/fccreport but I receive the following error:

Failed Artifact Download failed to download artifact “git::git@wiki.sysmetrics.testing.com:fcc/fcc.git”: getter subprocess failed: exit status 1: failed to download artifact: error downloading ‘ssh://[git@wiki.sysmetrics.testingcom/fcc/fcc.git?sshkey=redacted]
(http://git@wiki.sysmetrics.testing.com/fcc/fcc.git?sshkey=redacted)’:
/usr/bin/git exited with 128: fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths

Has anyone seen this issue or can provide insight.
Thank you,
Tom

The ${ is expanded when running the command nomad job run.

What is the job specification in the nomad ui? Is the string empty?

Is the ssh file available on the pc and context you are executing nomad run from? Is cat of the file correct?

Why pathexpand?

The issue was I was trying to clone the repo into a mounted drive. Once I cloned it into ${NOMAD_TASK_DIR} everything worked fine. I am using pathexpand as I am new to Nomad and I was following the documentation.
Thank you for your response,
Tom