Fixing missing newlines

This commit is contained in:
2024-08-24 21:57:01 +02:00
parent 19a7e9d60f
commit f56646a9ca

View File

@@ -1,20 +1,11 @@
# This script expects an OS that is based on Debian in at least package management
usage="$(basename "$0") [-h] [-s] [-n hostname] -- my script for initializing new Linux installs
where:
-h, ? show this help text
-s, --server set server flag to only install server components, default
\n\n
where:\n
-h, ? show this help text\n
-s, --server set server flag to only install server components, default\n
-n, --name [hostname] set the hostname to the argument"
# A few repos need the i386 arch
sudo dpkg --add-architecture i386
# Some packages need these
sudo apt install -y wget gnupg lsb-release apt-transport-https ca-certificates software-properties-common
# A few packages store their keys in specific location that doesn't exist at first
sudo install -m 0755 -d /etc/apt/keyrings
# A repos don't support virgnia (Mint codename), only recognizing Jammy (Ubuntu)
distro=jammy
@@ -26,7 +17,7 @@ client=true
while getopts "h?sn:" opt; do
case "$opt" in
h|\?)
show_help
echo -e $usage
exit 0
;;
s|server) client=false
@@ -36,7 +27,16 @@ while getopts "h?sn:" opt; do
;;
esac
done
# shift $(($OPTIND - 1))
# A few repos need the i386 arch
sudo dpkg --add-architecture i386
# Some packages need these
sudo apt install -y wget gnupg lsb-release apt-transport-https ca-certificates software-properties-common
# A few packages store their keys in specific location that doesn't exist at first
sudo install -m 0755 -d /etc/apt/keyrings
if [ $client ]
then