projects
/
grml-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
grml_chroot: fix broken mount argument handling
[grml-scripts.git]
/
usr_sbin
/
grml-chroot
diff --git
a/usr_sbin/grml-chroot
b/usr_sbin/grml-chroot
index
8fcdabf
..
b13b57e
100755
(executable)
--- a/
usr_sbin/grml-chroot
+++ b/
usr_sbin/grml-chroot
@@
-43,14
+43,14
@@
function mountit
local dest_="$2"
local options_="$3"
local dest_="$2"
local options_="$3"
- local all_options_=
""
+ local all_options_=
()
if [[ $options_ == "--bind" ]]; then
if [[ $options_ == "--bind" ]]; then
- all_options_
="--bind $type_"
+ all_options_
+=(--bind "$type_")
else
else
- all_options_
="-t $type_ none"
+ all_options_
+=(-t "$type_" none)
fi
fi
- mount "$
all_options_
" "${DEST_}/$dest_" && storeMounts "$dest_"
+ mount "$
{all_options_[@]}
" "${DEST_}/$dest_" && storeMounts "$dest_"
}
function umount_all
}
function umount_all