mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
remove sudo in install.sh
This commit is contained in:
parent
e5e0001dad
commit
f530236e23
24
install.sh
24
install.sh
@ -41,23 +41,17 @@ done
|
|||||||
echo "Installing to ${prefix} ..."
|
echo "Installing to ${prefix} ..."
|
||||||
|
|
||||||
# INSTALL AUTOJUMP
|
# INSTALL AUTOJUMP
|
||||||
SUDO="sudo"
|
mkdir -p ${prefix}/share/autojump/
|
||||||
case "${OSTYPE}" in
|
mkdir -p ${prefix}/bin/
|
||||||
*cygwin*|*msys*)
|
mkdir -p ${prefix}/share/man/man1/
|
||||||
SUDO="";;
|
cp icon.png ${prefix}/share/autojump/
|
||||||
*);;
|
cp jumpapplet ${prefix}/bin/
|
||||||
esac
|
cp autojump ${prefix}/bin/
|
||||||
$SUDO mkdir -p ${prefix}/share/autojump/
|
cp autojump.1 ${prefix}/share/man/man1/
|
||||||
$SUDO mkdir -p ${prefix}/bin/
|
|
||||||
$SUDO mkdir -p ${prefix}/share/man/man1/
|
|
||||||
$SUDO cp icon.png ${prefix}/share/autojump/
|
|
||||||
$SUDO cp jumpapplet ${prefix}/bin/
|
|
||||||
$SUDO cp autojump ${prefix}/bin/
|
|
||||||
$SUDO cp autojump.1 ${prefix}/share/man/man1/
|
|
||||||
|
|
||||||
if [ -d "/etc/profile.d" ]; then
|
if [ -d "/etc/profile.d" ]; then
|
||||||
$SUDO cp autojump.bash /etc/profile.d/
|
cp autojump.bash /etc/profile.d/
|
||||||
$SUDO cp autojump.sh /etc/profile.d/
|
cp autojump.sh /etc/profile.d/
|
||||||
|
|
||||||
# Make sure that the code we just copied has been sourced.
|
# Make sure that the code we just copied has been sourced.
|
||||||
# check if .bashrc has sourced /etc/profile or /etc/profile.d/autojump.bash
|
# check if .bashrc has sourced /etc/profile or /etc/profile.d/autojump.bash
|
||||||
|
Loading…
Reference in New Issue
Block a user