summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorMichael Stummvoll <michael@stummi.org>2013-03-22 14:06:30 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:07 +0200
commitff6a7fd628a0f970881ba5c620ba4270957baf7d (patch)
treef973f826d7b946d8933efd158c317fc2e512055b /functions
parenta00211e9c62d8c7ae2e4b934e26fa293f89ec2a9 (diff)
downloadvyos-live-build-ff6a7fd628a0f970881ba5c620ba4270957baf7d.tar.gz
vyos-live-build-ff6a7fd628a0f970881ba5c620ba4270957baf7d.zip
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.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 64a02c4e7..c64917abb 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -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)