a bit cleaner

This commit is contained in:
2012-02-08 14:38:58 +00:00
parent 9e11cd139d
commit e5dae1cc42

View File

@@ -59,9 +59,9 @@ install_virtualenv () {
# #
if [ -n "${BASH_SOURCE[0]}" ] && [ -f "${BASH_SOURCE[0]}" ] ; then if [ -n "${BASH_SOURCE[0]}" ] && [ -f "${BASH_SOURCE[0]}" ] ; then
ROOT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ROOT_PATH=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
elif [ -n "$0" ] && [ -f "$0" ]; then elif [ -n "$0" ] && [ -f "$0" ]; then
ROOT_PATH="$( cd "$( dirname "$0" )" && pwd )" ROOT_PATH=$(cd "$(dirname "$0")" && pwd)
else else
echo "[ERROR] Can't determine dotfiles' root path." echo "[ERROR] Can't determine dotfiles' root path."
exit 1 exit 1