X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=blobdiff_plain;f=usr_sbin%2Fgrml-chroot;fp=usr_sbin%2Fgrml-chroot;h=b13b57e006315dfea4ffb1de8801c68f0efa4e7e;hp=8fcdabfcaae58a99f2e0bf804b42598f3c6fdf60;hb=3b7f948896440f41092f14347b17ce114072c569;hpb=40ec66c5320ebed6a99ffd92456d1ccde5d06345 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