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 ...@@ -69,15 +69,14 @@ then
esac esac
fi fi
# try to extract the uid cgroup from the input one
# ( extract /uid_% from /uid%/job_*...)
uidcg=${rmcg%/job_*}
# kernel call # kernel call
if [[ $# -eq 1 ]] if [[ $# -eq 1 ]]
then then
rmcg=${mountdir}$@
# try to extract the uid cgroup from the input one
# ( extract /uid_% from /uid%/job_*...)
uidcg=${rmcg%/job_*}
if [[ ${uidcg} == ${rmcg} ]] if [[ ${uidcg} == ${rmcg} ]]
then then
# not a slurm job pattern, perhaps the uidcg, just remove # not a slurm job pattern, perhaps the uidcg, just remove
...@@ -98,10 +97,6 @@ then ...@@ -98,10 +97,6 @@ then
elif [[ $# -eq 2 ]] && [[ $1 == "sync" ]] elif [[ $# -eq 2 ]] && [[ $1 == "sync" ]]
then then
shift
rmcg=${mountdir}$@
uidcg=${rmcg%/job_*}
# remove this cgroup # remove this cgroup
if [[ -d ${rmcg} ]] if [[ -d ${rmcg} ]]
then 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