Skip to content

Commit 04d5d3f

Browse files
authored
Merge pull request #382 from SouthernMethodistUniversity/ollama_testing
fix logic error
2 parents eddbfdf + 28af99a commit 04d5d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/ollama_scripts/ollama.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ollama() {
1414

1515
# require a job id (except for appmgr)
1616
CURRENT_USER=$(id -un)
17-
if [[ -z "$SLURM_JOB_ID" || "$CURRENT_USER" != "appmgr" ]]; then
17+
if [[ -z "$SLURM_JOB_ID" && "$CURRENT_USER" != "appmgr" ]]; then
1818
echo "ERROR: please run Ollama in a job" >&2
1919
return 1
2020
fi

0 commit comments

Comments
 (0)