X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fgrml-chroot;h=b13b57e006315dfea4ffb1de8801c68f0efa4e7e;hb=3b7f948896440f41092f14347b17ce114072c569;hp=8fcdabfcaae58a99f2e0bf804b42598f3c6fdf60;hpb=b4a4893b0b69207eb9189a0be857a64173c09275;p=grml-scripts.git diff --git a/usr_sbin/grml-chroot b/usr_sbin/grml-chroot index 8fcdabf..b13b57e 100755 --- a/usr_sbin/grml-chroot +++ b/usr_sbin/grml-chroot @@ -43,14 +43,14 @@ function mountit local dest_="$2" local options_="$3" - local all_options_="" + local all_options_=() if [[ $options_ == "--bind" ]]; then - all_options_="--bind $type_" + all_options_+=(--bind "$type_") else - all_options_="-t $type_ none" + all_options_+=(-t "$type_" none) fi - mount "$all_options_" "${DEST_}/$dest_" && storeMounts "$dest_" + mount "${all_options_[@]}" "${DEST_}/$dest_" && storeMounts "$dest_" } function umount_all