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
|
_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')
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user