From 774f1eabdf7da31cdaa6bbfbb8a1d7db696238e5 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Wed, 23 Dec 2020 12:00:01 +0100 Subject: [PATCH] Fixed rotate gesture #141 --- scripts/core/sxmo_rotate.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/core/sxmo_rotate.sh b/scripts/core/sxmo_rotate.sh index 01696cf..85ecb71 100755 --- a/scripts/core/sxmo_rotate.sh +++ b/scripts/core/sxmo_rotate.sh @@ -42,4 +42,8 @@ rotate() { if isrotated; then rotnormal; else rotright; fi } -"$1" +if [ -z "$1" ]; then + rotate +else + "$1" +fi