From 454a2e3195c46a1a7de5462852417735dcbef9dd Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 27 Feb 2020 12:22:31 +0100 Subject: [PATCH] Added spaces to end of apt.list for all curl commands --- installer.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/installer.sh b/installer.sh index 374d5ae..35f0069 100644 --- a/installer.sh +++ b/installer.sh @@ -185,6 +185,8 @@ fi webserv="${webserv//:}" && webserv="${webserv,,}" curl "$repo"/raw/branch/"$branch"/CoreModules/"$webserv"/apt.list >>/tmp/apt.list +printf " " >>/tmp/apt.list + ##----------## # Addons # @@ -290,17 +292,21 @@ for val1 in ${option[*]}; do #Fetching from local repo if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$repo"/raw/branch/"$branch"/SubModules/"$val1"/apt.list; then curl --retry 7 --retry-delay 5 -s "$repo"/raw/branch/"$branch"/SubModules/"$val1"/apt.list >>/tmp/apt.list + printf " " >>/tmp/apt.list fi if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$repo"/raw/branch/"$branch"/SubModules/"$val1"/"$webserv"-apt.list; then curl --retry 7 --retry-delay 5 -s "$repo"/raw/branch/"$branch"/SubModules/"$val1"/"$webserv"-apt.list >>/tmp/apt.list + printf " " >>/tmp/apt.list fi else #Fetching from remote repo if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$modListed"apt.list; then curl --retry 7 --retry-delay 5 -s "$modListed"apt.list >>/tmp/apt.list + printf " " >>/tmp/apt.list fi if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$modListed""$webserv"-apt.list; then curl "$modListed""$webserv"-apt.list >>/tmp/apt.list + printf " " >>/tmp/apt.list fi fi done @@ -345,10 +351,13 @@ echo "Generating Apt List for CMS" if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$repo"/raw/branch/"$branch"/CMS/"$CMS"/apt.list >>/tmp/apt.list; then curl "$repo"/raw/branch/"$branch"/CMS/"$CMS"/apt.list >>/tmp/apt.list + printf " " >>/tmp/apt.list fi if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$repo"/raw/branch/"$branch"/CMS/"$CMS"/"$webserv"-apt.list; then curl "$repo"/raw/branch/"$branch"/CMS/"$CMS"/"$webserv"-apt.list >>/tmp/apt.list + printf " " >>/tmp/apt.list + fi