Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Language other than English fails script #19

Closed
fleury08 opened this issue Jun 30, 2020 · 2 comments
Closed

Language other than English fails script #19

fleury08 opened this issue Jun 30, 2020 · 2 comments

Comments

@fleury08
Copy link

Running script

$sudo ./rolling-rhino
Rolling Rhino 🦏
[+] INFO: lsb_release detected.
[+] INFO: Ubuntu detected.
[+] INFO: Ubuntu Groovy Gorilla (development branch) detected.
[!] ERROR: No installed desktop packages were detected. Quitting.

Testing part where It crashed

$apt list --installed ubuntu-desktop | grep installed
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

I'm using Czech language and changing "installed" to "instalovaný" in script works

apt list --installed ubuntu-desktop | grep instalovaný
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
ubuntu-desktop/groovy,now 1.451 amd64 [instalovaný]

@m-ueberall
Copy link

Changing line 92 to

  INSTALLED=$(LANG=C apt list --installed "${META}" 2>/dev/null | grep installed)

should fix this for everyone.

@flexiondotorg
Copy link
Member

Fixed via #15

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants