mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
further work on de-p1st-rotate (3)
This commit is contained in:
parent
e427b6420c
commit
430035939c
@ -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')
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
;;
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user