chore: update install script for platform detection

This commit is contained in:
Jan De Dobbeleer 2023-06-05 08:57:30 +02:00
parent a12344b3cf
commit 50fc40a5fe
No known key found for this signature in database
GPG key ID: D9FE64756B9A61E6
2 changed files with 8 additions and 8 deletions

View file

@ -24,15 +24,10 @@ To display all icons, we recommend the use of a [Nerd Font][fonts].
defaultValue="homebrew"
groupId="install"
values={[
{ label: 'homebrew', value: 'homebrew', },
{ label: 'manual', value: 'manual', }
{ label: 'manual', value: 'manual', },
{ label: 'homebrew', value: 'homebrew', }
]
}>
<TabItem value="homebrew">
<InstallHomebrew />
</TabItem>
<TabItem value="manual">
Install the latest version for your system by running the following command:
@ -48,6 +43,11 @@ If you want to install to a different location you can specify it using the `-d`
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
```
</TabItem>
<TabItem value="homebrew">
<InstallHomebrew />
</TabItem>
</Tabs>

View file

@ -166,7 +166,7 @@ detect_arch() {
detect_platform() {
platform="$(uname -s | tr '[:upper:]' '[:lower:]')"
platform="$(uname -s | awk '{print tolower($0)}')"
case "${platform}" in
linux) platform="linux" ;;