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