From f56646a9cac976337e13117223bc388a66479605 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 24 Aug 2024 21:57:01 +0200 Subject: [PATCH] Fixing missing newlines --- apt-repos.sh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/apt-repos.sh b/apt-repos.sh index 7abb863..c0ce788 100755 --- a/apt-repos.sh +++ b/apt-repos.sh @@ -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