yadm-dev / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
5.11k stars 175 forks source link

Add detection for Android #453

Closed killermoehre closed 1 year ago

killermoehre commented 1 year ago

Android is a subtype of Linux (according to uname -s), but let's be honest, an Android doesn't behave like a typical Linux distribution.

What does this PR do?

Add detection for Android platform as OS.

Previous Behavior

Android platform is detected as Linux

New Behavior

Android is now Android.

Have tests been written for this change?

No

Have these commits been signed with GnuPG?

Yes.


Please review yadm's Contributing Guide for best practices.

rasa commented 1 year ago

Perhaps for Android, the os remain Linux, but we add a new attribute, such as subsystem (s), or platform (p), that's android? Personally, I would prefer WSL be seen as Linux, and the subsystem be wsl.

If there's interest in going in this direction (at least for Android), I can whip up a PR.