Browse Source
Since update-alternatives(1) is localized, screen scraping its output breaks if the locale is set to non-English.ander/os_version_debian_sid
2 changed files with 5 additions and 4 deletions
@ -1,4 +1,4 @@
|
||||
#!/bin/sh -e |
||||
|
||||
update-alternatives --display "${__object_id:?}" 2>/dev/null \ |
||||
| awk -F ' - ' '/priority [0-9]+$/ { print $1 }' |
||||
LC_ALL=C update-alternatives --display "${__object_id:?}" 2>/dev/null \ |
||||
| awk -F ' - ' '/priority [0-9]+$/ { print $1 }' |
||||
|
Loading…
Reference in new issue