diff --git a/pkg/de-p1st-rotate/PKGBUILD b/pkg/de-p1st-rotate/PKGBUILD index 14cfc3d..6fa9331 100644 --- a/pkg/de-p1st-rotate/PKGBUILD +++ b/pkg/de-p1st-rotate/PKGBUILD @@ -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') diff --git a/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate-screen b/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate-screen index 87c1d1d..8937f0e 100644 --- a/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate-screen +++ b/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate-screen @@ -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 diff --git a/pkg/de-p1st-rotate/usr/lib/de-p1st-rotate/get-orientation b/pkg/de-p1st-rotate/usr/lib/de-p1st-rotate/get-orientation index 5d8d31d..947a17d 100644 --- a/pkg/de-p1st-rotate/usr/lib/de-p1st-rotate/get-orientation +++ b/pkg/de-p1st-rotate/usr/lib/de-p1st-rotate/get-orientation @@ -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; ;; *)