diff options
author | Wynn Wolf Arbor | 2020-06-04 11:25:43 +0200 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-06-04 11:25:43 +0200 |
commit | daae3d6eb38b970e6e7330cf86ebf7fa8a78eb00 (patch) | |
tree | ee31f58b3463c2c799be219f847763486f6ff9d9 /skein-infra | |
parent | 26e9dd45937136187b0a1b6bb75c9f7526b37ba7 (diff) | |
download | skein-daae3d6eb38b970e6e7330cf86ebf7fa8a78eb00.tar.gz |
skein-infra: Use positional parameter instead of variable
Instead of relying on positional parameters, bind_umount() still
referenced "$i" from the function it initially came from, teardown().
This worked because the variable was still in scope, but is arguably
unclean and confusing.
Use positional parameters for bind_umount() instead, like bind_mount()
does.
Diffstat (limited to 'skein-infra')
-rwxr-xr-x | skein-infra | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/skein-infra b/skein-infra index 850b980..ac8084d 100755 --- a/skein-infra +++ b/skein-infra @@ -34,9 +34,9 @@ bind_mount() { } bind_umount() { - umount "$i" - rmdir "$i" - ldel "$(remove_prefix "$i")" + umount "$1" + rmdir "$1" + ldel "$(remove_prefix "$1")" } setup() { |