changeset 71:40236fd0a3a5

Explicit path checking.
author Edho Prima Arief <me@myconan.net>
date Mon, 23 May 2011 00:01:20 +0700
parents babf62f1bba7
children cb20a159ab00
files bash
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bash	Sun May 22 16:29:52 2011 +0700
+++ b/bash	Mon May 23 00:01:20 2011 +0700
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-[ -f .ecos_bash.before ] && . .ecos_bash.before
+[ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before"
 
 _org_path="${PATH}"
 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
@@ -71,4 +71,4 @@
   alias vi=vim
   export EDITOR=vim
 fi
-[ -f .ecos_bash.after ] && . .ecos_bash.after
+[ -f "${HOME}/.ecos_bash.after" ] && . "${HOME}/.ecos_bash.after"