From 853cd1fd97f88fdee6d25b5937af8d709f1b00a6 Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Thu, 20 Jan 2022 18:45:18 +0100 Subject: [PATCH] read default config only if found --- fb-login-test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fb-login-test.sh b/fb-login-test.sh index b18af8e..2974396 100755 --- a/fb-login-test.sh +++ b/fb-login-test.sh @@ -4,7 +4,9 @@ SID=0 # # define FB_USER and FB_PASS in file fbconfig.config the user must have access to the SmartHome -source $HOME/.fbsh.config +if (test -r $HOME/.fbsh.config); then + source $HOME/.fbsh.config +fi # # login into the FB, grabbing a valid Session Key into variable SID