Update inverter.sh
Error verbose for lack of X Display variable now uses stderr function
This commit is contained in:
parent
7f52a4a582
commit
1639605306
|
@ -29,7 +29,7 @@ SED="${SED:-$(command -v gsed || printf 'sed')}"
|
|||
dpy=$(printf "$DISPLAY" | tr -c '[:alnum:]' _)
|
||||
|
||||
if [ -z "$dpy" ]; then
|
||||
echo "Cannot find display."
|
||||
stderr "Cannot find display."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue