From 2c56622eebca26002f882bb2d17f20ccd27bc753 Mon Sep 17 00:00:00 2001 From: Ander Punnar Date: Fri, 21 Jul 2017 10:22:54 +0300 Subject: [PATCH] check file first --- cdist/conf/type/__timezone/explorer/timezone_is | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdist/conf/type/__timezone/explorer/timezone_is b/cdist/conf/type/__timezone/explorer/timezone_is index 7e9de076..ec957139 100755 --- a/cdist/conf/type/__timezone/explorer/timezone_is +++ b/cdist/conf/type/__timezone/explorer/timezone_is @@ -17,4 +17,5 @@ # You should have received a copy of the GNU General Public License # along with cdist. If not, see . # -cat /etc/timezone + +[ -f /etc/timezone ] && cat /etc/timezone