Skip to content

Commit

Permalink
Updating lang2locale(); to match new d-i langualgelist format.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Sep 11, 2009
1 parent 3a04d9f commit e93137f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/live-functions
Expand Up @@ -35,7 +35,7 @@ lang2locale() {
langpart="${1%%_*}"
if [ "$1" != "C" ]; then
# Match the language code with 3rd field in languagelist
line=$(grep -v "^#" /usr/share/live-initramfs/languagelist | cut -f3,4,5 -d\; | grep -v ';C$' | grep "^$langpart;")
line=$(grep -v "^#" /usr/share/live-initramfs/languagelist | cut -f1,3,6 -d\; | grep -v ';C$' | grep "^$langpart;")
if [ -n "$line" ]; then
if [ "$(echo "$line" | grep -c '')" -gt 1 ]; then
# More than one match; try matching the
Expand Down

0 comments on commit e93137f

Please sign in to comment.