From cbc4253ca6c31698661a1cb9ad4de4e1cc2bea57 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 17 Jun 2021 16:52:12 +0200 Subject: [PATCH] fix --- pkg/de-p1st-rotate/PKGBUILD | 2 +- pkg/de-p1st-rotate/usr/bin/de-p1st-auto-rotate | 4 ++++ pkg/de-p1st-rotate/usr/bin/de-p1st-rotate-screen | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/de-p1st-rotate/PKGBUILD b/pkg/de-p1st-rotate/PKGBUILD index ff6f201..bc5bf57 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.4 +pkgver=0.0.5 pkgrel=1 pkgdesc="Scripts to automate screen rotation" arch=('any') diff --git a/pkg/de-p1st-rotate/usr/bin/de-p1st-auto-rotate b/pkg/de-p1st-rotate/usr/bin/de-p1st-auto-rotate index 0658876..57eb54b 100644 --- a/pkg/de-p1st-rotate/usr/bin/de-p1st-auto-rotate +++ b/pkg/de-p1st-rotate/usr/bin/de-p1st-auto-rotate @@ -23,6 +23,10 @@ case "${ORIENTATION_STR}" in *": left-up"*) ORIENTATION="right"; ;; + *": undefined"*) + echo "The orientation could not yet be determined. Please rotate the device a bit and try again." + exit 1; + ;; *) echo "Could not parse ORIENTATION_STR!"; echo "${ORIENTATION_STR}"; 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 c43bc8d..c9b5ae6 100644 --- a/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate-screen +++ b/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate-screen @@ -1,7 +1,7 @@ #!/bin/bash # @post: $SCREEN variable and $DEVICES array are set -source /etc/de-1st-rotate/config.cfg || exit $? +source /etc/de-p1st-rotate/config.cfg || exit $? if [ "$#" -ne "1" ]; then echo "usage: $0 ORIENTATION";