diff options
author | David P <megver83@parabola.nu> | 2021-07-10 15:53:19 -0400 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2021-07-10 15:53:19 -0400 |
commit | 7a2c689f3808a8b970006f9e8f01e883490ea72b (patch) | |
tree | abcc684d09b45dca8e8e12be3560f6b81c0f0336 | |
parent | 37de77a06e7917ff50dec6ca469b45700986c698 (diff) |
chroot-run: declare mount_args at the beginning of the scriptlibretools-v20190907-nonsystemdlibretools-20190907-nonsystemdnonsystemd
Signed-off-by: David P <megver83@parabola.nu>
-rw-r--r-- | chroot-run.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chroot-run.in b/chroot-run.in index 95958cc..b41b01d 100644 --- a/chroot-run.in +++ b/chroot-run.in @@ -39,6 +39,7 @@ umask 0022 working_dir='' files=() +declare -g mount_args=() mount_args=("-B:/etc/hosts:/etc/hosts") unshare_args=("-Cfimu") @@ -96,8 +97,6 @@ host_mirror=$($pacconf_cmd --repo extra Server 2> /dev/null | head -1 | sed -r ' # {{{ functions build_mount_args() { - declare -g mount_args=() - if [[ -n $host_mirror_path ]]; then mount_args+=("-B:$host_mirror_path:$host_mirror_path") fi |