Allow XDT_SDK overwrite
[src/xds/xds-server.git] / scripts / sdks / agl / _env-init.sh
index 921f319..cc91107 100755 (executable)
 # limitations under the License.
 ###########################################################################
 
-[ -f /etc/xdtrc ] && . /etc/xdtrc
-
 if [ -z "$XDT_SDK" ]; then
-    # For backward compatibility and compliance with AGL DevKit docker image
-       [ -d "/xdt/sdk" ] && export XDT_SDK=/xdt/sdk || export XDT_SDK=$HOME/xds-workspace/.sdks
+    [ -f /etc/xdtrc ] && . /etc/xdtrc
+
+    if [ -z "$XDT_SDK" ]; then
+        # For backward compatibility and compliance with AGL DevKit docker image
+       [ -d "/xdt/sdk" ] && export XDT_SDK=/xdt/sdk || export XDT_SDK=$HOME/xds-workspace/.sdks
+    fi
 fi
 
 export SDK_FAMILY_NAME="agl"