#!/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"