Remove unnecessary code from install.sh.

In the past the installer would modify the user's ~/.bashrc and thus needed to
find the current user's name and home directory. However, the installer no
longer modifies user's ~/.bashrc and getent also outputs error messages for
Cygwin users.
pull/131/head
William Ting 12 years ago
parent 3fdc213149
commit 3f78b56bc7

@ -41,16 +41,6 @@ else
prefix=~/.autojump
fi
user=${SUDO_USER:-${USER}}
OS=`uname`
if [ $OS == 'Darwin' ]; then
user_home=$(dscl . -search /Users UniqueID ${user} | cut -d: -f6)
else
user_home=$(getent passwd ${user} | cut -d: -f6)
fi
bashrc_file=${user_home}/.bashrc
# Command line parsing
while true; do
case "$1" in

Loading…
Cancel
Save