Skip to content

Commit

Permalink
fix: account for syncplay in either default location or windows path (#…
Browse files Browse the repository at this point in the history
…1125)

Co-authored-by: Yusuf Khan <[email protected]>
Co-authored-by: zen <[email protected]>
  • Loading branch information
3 people committed May 16, 2023
1 parent fae63c2 commit 2afd2da
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ani-cli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

version_number="4.2.9"
version_number="4.3.0"

# UI

Expand All @@ -10,7 +10,7 @@ external_menu() {

launcher() {
[ "$use_external_menu" = "0" ] && [ -z "$1" ] && set -- "+m" "$2"
[ "$use_external_menu" = "0" ] && fzf "$1" --reverse --prompt "$2"
[ "$use_external_menu" = "0" ] && fzf "$1" --reverse --cycle --prompt "$2"
[ "$use_external_menu" = "1" ] && external_menu "$1" "$2"
}

Expand Down Expand Up @@ -323,7 +323,10 @@ while [ $# -gt 0 ]; do
-s | --syncplay)
case "$(uname -s)" in
Darwin*) player_function="/Applications/Syncplay.app/Contents/MacOS/syncplay" ;;
MINGW* | *Msys) player_function="/c/Program Files (x86)/Syncplay/Syncplay.exe" ;;
MINGW* | *Msys)
export PATH="$PATH":"/c/Program Files (x86)/Syncplay/"
player_function="syncplay.exe"
;;
*) player_function="syncplay" ;;
esac
;;
Expand Down

0 comments on commit 2afd2da

Please sign in to comment.