Browse code

Fixing duplicate paths in $PATH.

Change-Id: I63c511f3e1e1385a172b89d07b277f38c49dbf3d
Reviewed-on: http://photon-jenkins.eng.vmware.com/754
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Sharath George

Sharath George authored on 2016/04/26 08:02:45
Showing 1 changed files
... ...
@@ -239,12 +239,13 @@ pathappend () {
239 239
 export -f pathremove pathprepend pathappend
240 240
 
241 241
 # Set the initial path
242
-export PATH=$PATH:/bin:/usr/bin
242
+# Block unnessary as this is set elsewhere.
243
+# export PATH=$PATH:/bin:/usr/bin
243 244
 
244
-if [ $EUID -eq 0 ] ; then
245
-        pathappend /sbin:/usr/sbin
246
-        unset HISTFILE
247
-fi
245
+# if [ $EUID -eq 0 ] ; then
246
+#         pathappend /sbin:/usr/sbin
247
+#         unset HISTFILE
248
+# fi
248 249
 
249 250
 # Setup some environment variables.
250 251
 export HISTSIZE=1000