Skip to content

Commit b37f381

Browse files
authored
Update install.sh
1 parent 7e05e10 commit b37f381

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ else
1111
: "${INSTALL_PREFIX:=/usr/local}"
1212
fi
1313

14+
mkdir -p ${INSTALL_PREFIX}/lib
1415
cp -r . ${INSTALL_PREFIX}/lib/crew-sudo
1516

17+
mkdir -p ${INSTALL_PREFIX}/bin
1618
ln -sf ../lib/crew-sudo/crew-sudo ${INSTALL_PREFIX}/bin/crew-sudo
1719
ln -sf ../lib/crew-sudo/crew-sudo ${INSTALL_PREFIX}/bin/sudo
1820

1921
if [ -d ${INSTALL_PREFIX}/etc/env.d ]; then
2022
# installing under chromebrew
23+
mkdir -p ${INSTALL_PREFIX}/etc/{env.d,bash.d}
2124
ln -sf ../lib/crew-sudo/autostart/crew-sudo.sh ${INSTALL_PREFIX}/etc/env.d/crew_sudo
2225
ln -sf ../lib/crew-sudo/autocomplete/crew-sudo.sh ${INSTALL_PREFIX}/etc/bash.d/crew_sudo
2326
else
2427
# installing without chromebrew, append the autostart script to bashrc
25-
echo "source ${INSTALL_PREFIX}/lib/crew-sudo/autostart/crew-sudo.sh" > ~/.bashrc
28+
echo "source ${INSTALL_PREFIX}/lib/crew-sudo/autostart/crew-sudo.sh" >> ~/.bashrc
2629
fi

0 commit comments

Comments
 (0)