slam_tomb: adjust for changes in list_tomb_mounts

As the argument for list_tomb_mounts uses the input directly, it needs to be uniform.
Therefore one must make sure that extraneous character like parentheses are removed from the variable.
And those are in place in tombname for slam_tomb().
This commit is contained in:
Narrat 2024-08-06 20:42:05 +02:00 committed by Jaromil
parent 33f7878a22
commit 41b899e4e1

4
tomb
View File

@ -3162,7 +3162,7 @@ slam_tomb() {
result=1 } result=1 }
done done
# if it failed killing a process, report it # if it failed killing a process, report it
[[ $result = 0 ]] && umount_tomb $tombname [[ $result = 0 ]] && umount_tomb "${tombname:1:-1}"
done done
return $result return $result
} }
@ -3378,7 +3378,7 @@ main() {
# Slam a tomb killing all processes running inside # Slam a tomb killing all processes running inside
slam) slam)
slam_tomb $PARAM slam_tomb $PARAM[1]
;; ;;
# Close the tomb # Close the tomb