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 _pkgname=rotate
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.9 pkgver=0.0.10
pkgrel=1 pkgrel=1
pkgdesc="Scripts to automate screen rotation" pkgdesc="Scripts to automate screen rotation"
arch=('any') arch=('any')

View File

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

View File

@ -24,7 +24,7 @@ case "${ORIENTATION_STR}" in
ORIENTATION="left"; ORIENTATION="left";
;; ;;
*": undefined"*) *": 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; exit 1;
;; ;;
*) *)