Move exception throw to the correct line

This throw was placed on the echo line instead of the actual command.

Change-Id: I907c2ce17afa64c9c4ef628d766d7dfe270ade59
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
This commit is contained in:
Joni Jantti
2018-01-10 10:02:32 +02:00
committed by Jani Heikkinen
parent 31a0826fe8
commit 786be66eaf

View File

@@ -52,8 +52,8 @@ ExceptionProxy=104
try
(
echo "Set timezone to UTC" || throw $ExceptionTimezone
sudo timedatectl set-timezone Etc/UTC
echo "Set timezone to UTC."
sudo timedatectl set-timezone Etc/UTC || throw $ExceptionTimezone
echo "Timeout for blanking the screen (0 = never)"
gsettings set org.gnome.desktop.session idle-delay 0 || throw $ExceptionGsettings1
echo "Prevents screen lock when screesaver goes active."