Skip to content
Snippets Groups Projects
Commit f4845f6c authored by Philip Hands's avatar Philip Hands
Browse files

fixup! really detect the language level (closes: 1011254)

parent 5a9b08ca
No related branches found
No related tags found
No related merge requests found
Pipeline #380700 passed with warnings
Pipeline: branch2repo

#380701

    ......@@ -82,7 +82,7 @@ fi
    # We take the first entry that matches up to the locale's first `_` since
    # languages with multiple entries (such as pt/pt_BR or zh_CN/zh_TW)
    # will have the same level for all of their entries.
    LEVEL=$(sed -ne "/^${LOCALE%%_*}/"'{ s/^[[:alpha:]]*;\([[:digit:]]\);.*/\1/p; q}' /usr/share/localechooser/languagelist)
    LEVEL=$(sed -ne "/^${LOCALE%%_*}/"'{ s/^[^;]*;\([0-9]\);.*/\1/p; q}' /usr/share/localechooser/languagelist)
    if [ "$LEVEL" -ge 3 ]; then
    cat >> "/target/root/.profile" <<-EOF
    # Installed by Debian Installer:"
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment