Unquote $recursive to support empty-case

This is safe to do, as the value of $recursive is not dependent on
user-supplied code.
This commit is contained in:
Jonas Weber 2018-10-04 19:28:36 +02:00
parent 53728a7ff0
commit fff656d1ac

View file

@ -57,18 +57,18 @@ get_current_value() {
}
set_group() {
echo "chgrp '$recursive' '$1' '$destination'"
echo "chgrp '$recursive' '$1'" >> "$__messages_out"
echo "chgrp $recursive '$1' '$destination'"
echo "chgrp $recursive '$1'" >> "$__messages_out"
}
set_owner() {
echo "chown '$recursive' '$1' '$destination'"
echo "chown '$recursive' '$1'" >> "$__messages_out"
echo "chown $recursive '$1' '$destination'"
echo "chown $recursive '$1'" >> "$__messages_out"
}
set_mode() {
echo "chmod '$recursive' '$1' '$destination'"
echo "chmod '$recursive' '$1'" >> "$__messages_out"
echo "chmod $recursive '$1' '$destination'"
echo "chmod $recursive '$1'" >> "$__messages_out"
}
case "$state_should" in