Skip to content

Commit

Permalink
Merge pull request #122 from fgci-org/master
Browse files Browse the repository at this point in the history
Add quotation marks to epilog script (templates/namespace_clean.sh.j2)
  • Loading branch information
VilleS1 authored Nov 9, 2021
2 parents ab61965 + 9c3a775 commit 232dd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/namespace_clean.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# the output is empty, that is no jobs by the user running on the node
# and no error occurred (timeout etc.)
userlist=$(/usr/bin/squeue -w $(hostname -s) -o%u -h -u $SLURM_JOB_USER -t R,S,CF 2>&1)
if [ -z $userlist ]; then
if [ -z "$userlist" ]; then
/bin/rm -rf {{ pam_tmp_inst_dir }}/$SLURM_JOB_USER {{ pam_var_tmp_inst_dir }}/$SLURM_JOB_USER /dev/shm/$SLURM_JOB_USER
fi
{% endif %}

0 comments on commit 232dd71

Please sign in to comment.