From: PHO Date: Thu, 12 May 2016 09:40:55 +0000 (+0900) Subject: Auto commit by The Sugar System. X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=fe953a8337c073380bbe82fe3f659598d7a4a6dd;p=sugar.git Auto commit by The Sugar System. --- diff --git a/dot-files/_zshenv b/dot-files/_zshenv index d0b413f..7164c3f 100644 --- a/dot-files/_zshenv +++ b/dot-files/_zshenv @@ -4,10 +4,10 @@ function append_path { local _varname="$1" local _path="$2" - if [ -d "$_path" ]; then + if [[ -d "$_path" ]]; then local _var=$(eval echo $(printf '$%s' "$_varname")) - if [ "$_var" = "" ]; then + if [[ "$_var" = "" ]]; then eval $(printf 'export %s="%s"' "$_varname" "$_path") else eval $(printf 'export %s="%s:$%s"' "$_varname" "$_path" "$_varname")