Skip to content

Commit

Permalink
fix: remove hostname from uname output in OS detection
Browse files Browse the repository at this point in the history
  • Loading branch information
VAISHAKH-GK committed Oct 13, 2024
1 parent e448f9d commit 05117bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ cd .. && rm -rf ./ani-cli
*To install (with Homebrew) the dependencies required on Mac OS, you can run:*

```sh
brew install curl grep aria2 ffmpeg git fzf yt-dlp && \
brew install curl grep awk aria2 ffmpeg git fzf yt-dlp && \
brew install --cask iina
```
*Why iina and not mpv? Drop-in replacement for mpv for MacOS. Integrates well with OSX UI. Excellent support for M1. Open Source.*
Expand Down Expand Up @@ -259,7 +259,7 @@ Make sure apk is updated using
```apk update; apk upgrade```
then run this:
```sh
apk add grep sed curl fzf git aria2 ncurses patch
apk add grep sed curl awk fzf git aria2 ncurses patch
apk add ffmpeg
git clone --depth 1 https://github.com/pystardust/ani-cli ~/.ani-cli
cp ~/.ani-cli/ani-cli /usr/local/bin/ani-cli
Expand Down Expand Up @@ -494,7 +494,7 @@ rm -rf /usr/local/bin/ani-cli
```
To uninstall other dependencies:
```
apk del grep sed curl fzf git aria2 ffmpeg ncurses
apk del grep sed curl awk fzf git aria2 ffmpeg ncurses
```

</details>
Expand Down Expand Up @@ -522,6 +522,7 @@ echo "source /path/to/your/completions/_ani-cli-zsh" >> ~/.zshrc
- grep
- sed
- curl
- awk
- mpv - Video Player
- iina - mpv replacement for MacOS
- aria2c - Download manager
Expand Down
4 changes: 2 additions & 2 deletions ani-cli
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ mode="${ANI_CLI_MODE:-sub}"
download_dir="${ANI_CLI_DOWNLOAD_DIR:-.}"
log_episode="${ANI_CLI_LOG:-1}"
quality="${ANI_CLI_QUALITY:-best}"
case "$(uname -a)" in
case "$(uname -a | awk '{$2=""; print $0}')" in
*Darwin*) player_function="${ANI_CLI_PLAYER:-$(where_iina)}" ;; # mac OS
*ndroid*) player_function="${ANI_CLI_PLAYER:-android_mpv}" ;; # Android OS (termux)
*MINGW* | *WSL2*) player_function="${ANI_CLI_PLAYER:-mpv.exe}" ;; # Windows OS
Expand All @@ -359,7 +359,7 @@ search="${ANI_CLI_DEFAULT_SOURCE:-scrape}"
while [ $# -gt 0 ]; do
case "$1" in
-v | --vlc)
case "$(uname -a)" in
case "$(uname -a | awk '{$2=""; print $0}')" in
*ndroid*) player_function="android_vlc" ;;
MINGW* | *WSL2*) player_function="vlc.exe" ;;
*ish*) player_function="iSH" ;;
Expand Down

0 comments on commit 05117bc

Please sign in to comment.