Replaced \dev\null to /dev/null introduced in the last fix

master
Meliurwen 3 years ago
parent 3205e32199
commit 2d7db56527
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 2
      polybar/.config/polybar/scripts/mpv.sh

@ -27,7 +27,7 @@ if pgrep -u "$(id -u)" -x mpv > /dev/null; then
# The "16) Connection refused" error happens at the row below
# See: https://github.com/deterenkelt/Nadeshiko/wiki/Known-issues-for-Nadeshiko%E2%80%91mpv#----connection-refused
if ! TIME="$(echo '{ "command": ["get_property", "time-pos"] }' | socat - "$MPV_SOCKET_PATH" 2> "\dev\null")"; then
if ! TIME="$(echo '{ "command": ["get_property", "time-pos"] }' | socat - "$MPV_SOCKET_PATH" 2> /dev/null)"; then
exit 1
fi
if [ "$(echo "$TIME" | jq -r .error)" = "success" ]; then

Loading…
Cancel
Save