-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure
executable file
·30 lines (25 loc) · 1023 Bytes
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
if [ -d "$HOME/.recon-scripts" ]; then
echo "Looks like recon-scripts is already installed in your system"
exit 1
fi
git clone https://github.com/tedmdelacruz/recon-scripts.git "$HOME/.recon-scripts"
if [ ! -z $RECON_SCRIPTS_PATH ]; then
exit 1
fi
if [ "$SHELL" == "/usr/local/bin/zsh" ] || [ "$SHELL" == "/usr/bin/zsh" ] || [ "$SHELL" == "/bin/zsh" ]; then
echo "Shell detected: zsh"
echo "Installing recon-scripts to \$PATH..."
echo "export PATH=\"\$PATH:\$RECON_SCRIPTS_PATH/bin\"" >>~/.zshrc
elif [ "$SHELL" == "/bin/bash" ]; then
echo "Shell detected: bash"
echo "Installing recon-scripts to \$PATH..."
echo "export PATH=\"\$PATH:\$RECON_SCRIPTS_PATH/bin\"" >>~/.bashrc
else
echo "Could not detect shell"
echo "Please add the following to your shell startup file"
echo "export PATH=\"\$PATH:\$RECON_SCRIPTS_PATH/bin\""
fi
echo ""
echo "Please configure vars.sh from $HOME/.recon-scripts/vars.sh.example"
echo "then restart your shell with exec \$SHELL"