mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
sudo is needed in non-windows system
This commit is contained in:
parent
d9a423370a
commit
b39c84ec86
20
install.sh
20
install.sh
@ -41,13 +41,19 @@ done
|
||||
echo "Installing to ${prefix} ..."
|
||||
|
||||
# INSTALL AUTOJUMP
|
||||
mkdir -p ${prefix}/share/autojump/
|
||||
mkdir -p ${prefix}/bin/
|
||||
mkdir -p ${prefix}/share/man/man1/
|
||||
cp icon.png ${prefix}/share/autojump/
|
||||
cp jumpapplet ${prefix}/bin/
|
||||
cp autojump ${prefix}/bin/
|
||||
cp autojump.1 ${prefix}/share/man/man1/
|
||||
SUDO="sudo"
|
||||
case "${OSTYPE}" in
|
||||
*cygwin*|*msys*)
|
||||
SUDO="";;
|
||||
*);;
|
||||
esac
|
||||
$SUDO mkdir -p ${prefix}/share/autojump/
|
||||
$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
|
||||
cp autojump.bash /etc/profile.d/
|
||||
|
Loading…
Reference in New Issue
Block a user