Skip to content

Commit

Permalink
fix: remove hostname from uname output in OS detection (#1440)
Browse files Browse the repository at this point in the history
Co-authored-by: port19 <port19@port19.xyz>
  • Loading branch information
VAISHAKH-GK and port19x authored Oct 17, 2024
1 parent e5a8b95 commit d82b787
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ani-cli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

version_number="4.9.4"
version_number="4.9.5"

# UI

Expand Down Expand Up @@ -347,7 +347,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 | cut -d " " -f 1,3-)" 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 @@ -371,7 +371,7 @@ search="${ANI_CLI_DEFAULT_SOURCE:-scrape}"
while [ $# -gt 0 ]; do
case "$1" in
-v | --vlc)
case "$(uname -a)" in
case "$(uname -a | cut -d " " -f 1,3-)" in
*ndroid*) player_function="android_vlc" ;;
MINGW* | *WSL2*) player_function="vlc.exe" ;;
*ish*) player_function="iSH" ;;
Expand Down

0 comments on commit d82b787

Please sign in to comment.