Update setup_bssh.sh
This commit is contained in:
parent
f429b53692
commit
4314fb94eb
|
@ -12,9 +12,9 @@ install_dependencies() {
|
||||||
|
|
||||||
setup_bssh() {
|
setup_bssh() {
|
||||||
echo "Downloading bssh script..."
|
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
|
if [ ! -x "${INSTALL_DIR}/bssh" ]; then
|
||||||
echo "Error: Failed to make bssh executable."
|
echo "Error: Failed to make bssh executable."
|
||||||
|
@ -26,7 +26,8 @@ setup_bssh() {
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
if command -v bssh >/dev/null 2>&1; then
|
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
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue