Skip to content

Commit 2afd2da

Browse files
port19xykhan2171zenith
authored
fix: account for syncplay in either default location or windows path (#1125)
Co-authored-by: Yusuf Khan <[email protected]> Co-authored-by: zen <[email protected]>
1 parent fae63c2 commit 2afd2da

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ani-cli

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
version_number="4.2.9"
3+
version_number="4.3.0"
44

55
# UI
66

@@ -10,7 +10,7 @@ external_menu() {
1010

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

@@ -323,7 +323,10 @@ while [ $# -gt 0 ]; do
323323
-s | --syncplay)
324324
case "$(uname -s)" in
325325
Darwin*) player_function="/Applications/Syncplay.app/Contents/MacOS/syncplay" ;;
326-
MINGW* | *Msys) player_function="/c/Program Files (x86)/Syncplay/Syncplay.exe" ;;
326+
MINGW* | *Msys)
327+
export PATH="$PATH":"/c/Program Files (x86)/Syncplay/"
328+
player_function="syncplay.exe"
329+
;;
327330
*) player_function="syncplay" ;;
328331
esac
329332
;;

0 commit comments

Comments
 (0)