From 07e57679528506fc63276b541493618facafebe6 Mon Sep 17 00:00:00 2001 From: xiaonaitong Date: Tue, 20 Sep 2011 06:53:31 -0600 Subject: [PATCH] missing $SUDO when copy files to /etc/profile.d --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 69e7a6c..2b7d272 100755 --- a/install.sh +++ b/install.sh @@ -16,7 +16,7 @@ #along with autojump. If not, see . function show_help { - echo " ./install.sh [--prefix /usr/local]" + echo "sudo ./install.sh [--prefix /usr/local]" } # Default install directory. @@ -56,8 +56,8 @@ $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/ - cp autojump.sh /etc/profile.d/ + $SUDO cp autojump.bash /etc/profile.d/ + $SUDO cp autojump.sh /etc/profile.d/ # Make sure that the code we just copied has been sourced. # check if .bashrc has sourced /etc/profile or /etc/profile.d/autojump.bash