updated detection in ssh and docker scripts
This commit is contained in:
parent
b0078a32db
commit
d5911f7fcb
@ -1,10 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if which ssh >/dev/null 2>&1; then
|
# check if ssh is installed
|
||||||
echo "SSH is installed"
|
if ! command -v ssh &>/dev/null; then
|
||||||
exit 1
|
echo "SSH is not installed"
|
||||||
else
|
else
|
||||||
echo "SSH is not installed"
|
echo "SSH is already installed"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if lsb_release -a 2>/dev/null | grep -q -E "Debian|Ubuntu"; then
|
if lsb_release -a 2>/dev/null | grep -q -E "Debian|Ubuntu"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user