Add redirection of output to /dev/null for xdg-open

Signed-off-by: Apostolis Anastasiou <apostolis.anastasiou.alpha@gmail.com>
This commit is contained in:
Apostolis Anastasiou 2023-01-21 19:02:55 +02:00
parent 3cc8ab1cb8
commit ec9617eafe
No known key found for this signature in database
GPG key ID: FD6B251FBF7F5D03

View file

@ -11,7 +11,7 @@ if [ -z "${NO_OPEN:-}" ]; then
if [ -s "$REPORT_OUTPUT" ]; then
if command -v open >/dev/null; then
open $REPORT_OUTPUT
elif [ -x "$(command -v xdg-open)" ]; then
elif [ -x "$(command -v xdg-open >/dev/null)" ]; then
xdg-open $REPORT_OUTPUT
else
echo "Please open $REPORT_OUTPUT"