further work on de-p1st-rotate (3)

This commit is contained in:
Daniel Langbein 2021-06-17 17:35:31 +02:00
parent e427b6420c
commit 430035939c
3 changed files with 3 additions and 6 deletions

View File

@ -2,7 +2,7 @@
_pkgname=rotate
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.9
pkgver=0.0.10
pkgrel=1
pkgdesc="Scripts to automate screen rotation"
arch=('any')

View File

@ -13,10 +13,7 @@ if [ "$#" -gt "1 " ] || [ "${1}" = "-h" ] || [ "${1}" = "--help" ] ; then
fi
if [ -z "${1}" ]; then
ORIENTATION="$(/usr/lib/de-p1st-rotate/get-orientation)" || {
echo "Could not get orientation: ${ORIENTATION}" >&2;
exit 1;
}
ORIENTATION="$(/usr/lib/de-p1st-rotate/get-orientation)" || exit $?;
else
ORIENTATION="$1"
fi

View File

@ -24,7 +24,7 @@ case "${ORIENTATION_STR}" in
ORIENTATION="left";
;;
*": undefined"*)
echo "The orientation could not yet be determined. Please rotate the device a bit and try again." >&2;
echo "Reported orientation is 'undefined'. Please rotate the device a bit and try again." >&2;
exit 1;
;;
*)