updated detection in ssh and docker scripts

This commit is contained in:
Mathieu Broillet 2023-06-16 16:03:00 +02:00
parent b0078a32db
commit d5911f7fcb
No known key found for this signature in database
GPG Key ID: 7D4F25BC50A0AA32

View File

@ -1,10 +1,11 @@
#!/bin/bash
if which ssh >/dev/null 2>&1; then
echo "SSH is installed"
exit 1
# check if ssh is installed
if ! command -v ssh &>/dev/null; then
echo "SSH is not installed"
else
echo "SSH is not installed"
echo "SSH is already installed"
exit 1
fi
if lsb_release -a 2>/dev/null | grep -q -E "Debian|Ubuntu"; then