diff options
Diffstat (limited to 'TOOLS')
-rwxr-xr-x | TOOLS/zsh.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TOOLS/zsh.pl b/TOOLS/zsh.pl index 91b15bbde5..309c0d4b22 100755 --- a/TOOLS/zsh.pl +++ b/TOOLS/zsh.pl @@ -232,8 +232,8 @@ sub call_mpv { my $output = `"$mpv" --no-config $cmd`; if ($? == -1) { die "Could not run mpv: $!"; - } elsif ($? != 0) { - die "mpv returned " . ($? >> 8) . " with output:\n$output"; + } elsif ((my $exit_code = $? >> 8) != 0) { + die "mpv returned $exit_code with output:\n$output"; } return split /\n/, $output; } |