Mercurial > hg > config
changeset 559:501169756134
.bash_overrides
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 26 Nov 2013 20:25:15 -0800 |
parents | db2d7026b531 |
children | d15ee034bdf1 |
files | .bash_overrides |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/.bash_overrides Tue Nov 26 13:46:07 2013 -0800 +++ b/.bash_overrides Tue Nov 26 20:25:15 2013 -0800 @@ -134,7 +134,12 @@ return fi last=${!#} - directory=$(dirname ${last}) + if [[ "${last:(-1)}" == "/" ]] + then + directory=${last} + else + directory=$(dirname ${last}) + fi if [[ ! -e "${directory}" ]] then mkdir -p "${directory}"