Fixing missing quotes for tr commands to avoid unwanted expansions.

[A-Z] and [a-z] expands if there is a file or directory with one letter in the
directory.
This commit is contained in:
Michael Stummvoll 2013-03-22 14:06:30 +01:00 committed by Daniel Baumann
parent a00211e9c6
commit ff6a7fd628
1 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ Set_defaults ()
# Setting mode (currently: debian, progress-linux, and ubuntu)
if [ -x /usr/bin/lsb_release ]
then
_DISTRIBUTOR="$(lsb_release -is | tr [A-Z] [a-z])"
_DISTRIBUTOR="$(lsb_release -is | tr "[A-Z]" "[a-z]")"
case "${_DISTRIBUTOR}" in
debian|progress-linux|ubuntu)
@ -881,7 +881,7 @@ Set_defaults ()
;;
progress-linux)
LB_HDD_LABEL="${LB_HDD_LABEL:-PROGRESS_$(echo ${LB_DISTRIBUTION} | tr [a-z] [A-Z])}"
LB_HDD_LABEL="${LB_HDD_LABEL:-PROGRESS_$(echo ${LB_DISTRIBUTION} | tr "[a-z]" "[A-Z]")}"
;;
ubuntu)