Skip to content
Snippets Groups Projects
Commit 974ff838 authored by Rémi Palancher's avatar Rémi Palancher Committed by Morris Jette
Browse files

avoid double definition of variables

Not a bug but a cosmetic patch to avoid double definition of variable
rmcg and uidcg.
parent 67b9b78b
No related branches found
No related tags found
No related merge requests found
......@@ -69,15 +69,14 @@ then
esac
fi
# try to extract the uid cgroup from the input one
# ( extract /uid_% from /uid%/job_*...)
uidcg=${rmcg%/job_*}
# kernel call
if [[ $# -eq 1 ]]
then
rmcg=${mountdir}$@
# try to extract the uid cgroup from the input one
# ( extract /uid_% from /uid%/job_*...)
uidcg=${rmcg%/job_*}
if [[ ${uidcg} == ${rmcg} ]]
then
# not a slurm job pattern, perhaps the uidcg, just remove
......@@ -98,10 +97,6 @@ then
elif [[ $# -eq 2 ]] && [[ $1 == "sync" ]]
then
shift
rmcg=${mountdir}$@
uidcg=${rmcg%/job_*}
# remove this cgroup
if [[ -d ${rmcg} ]]
then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment