Fix not existing /etc/xdtrc file 29/13229/2
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 16 Jan 2018 17:06:32 +0000 (18:06 +0100)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 22 Jan 2018 13:23:45 +0000 (13:23 +0000)
Change-Id: I1bfcb754fe7fd510f88d16153c00cb1f966aabed
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
scripts/sdks/agl/_env-init.sh

index 0f423c4..a08f798 100755 (executable)
@@ -17,7 +17,7 @@
 # limitations under the License.
 ###########################################################################
 
-. /etc/xdtrc
+[ -f /etc/xdtrc ] && . /etc/xdtrc
 
 [ -z "$XDT_SDK" ] && XDT_SDK=/xdt/sdk