You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
484 B

#!/bin/bash
# Author: Tealk
# Repo: https://codeberg.org/Tealk/shell-administration-script
for dep in sudo wget tar
do
echo "Checking for $dep..."
if command -v $dep > /dev/null; then
echo "Detected $dep..."
else
echo "Installing $dep"
if ! apt install -y $dep; then
echo "Unable to install $dep! Your base system has a problem; please check your default OS's package repositories."
echo "Repository installation aborted."
exit 1
fi
fi
done