Update inverter.sh

Error verbose for lack of X Display variable now uses stderr function
This commit is contained in:
Paradigm0001 2020-04-01 04:50:03 +00:00 committed by GitHub
parent 7f52a4a582
commit 1639605306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ SED="${SED:-$(command -v gsed || printf 'sed')}"
dpy=$(printf "$DISPLAY" | tr -c '[:alnum:]' _) dpy=$(printf "$DISPLAY" | tr -c '[:alnum:]' _)
if [ -z "$dpy" ]; then if [ -z "$dpy" ]; then
echo "Cannot find display." stderr "Cannot find display."
exit 1 exit 1
fi fi