Update setup_bssh.sh

This commit is contained in:
Saige Bowerman 2024-07-02 15:06:54 -05:00
parent f429b53692
commit 4314fb94eb
1 changed files with 4 additions and 3 deletions

View File

@ -12,9 +12,9 @@ install_dependencies() {
setup_bssh() {
echo "Downloading bssh script..."
curl -sSL "${GIT_URL}" -o "${INSTALL_DIR}/bssh"
sudo curl -sSL "${GIT_URL}" -o "${INSTALL_DIR}/bssh"
chmod +x "${INSTALL_DIR}/bssh"
sudo chmod +x "${INSTALL_DIR}/bssh"
if [ ! -x "${INSTALL_DIR}/bssh" ]; then
echo "Error: Failed to make bssh executable."
@ -26,7 +26,8 @@ setup_bssh() {
main() {
if command -v bssh >/dev/null 2>&1; then
echo "bssh is already installed."
rm -rf ${INSTALL_DIR}/bssh
echo "bSSH Uninstalled. Run the Script Again to Reinstall."
exit 0
fi