Commit Graph

25 Commits

Author SHA1 Message Date
d643676189 Remove wget Requirement
We currently require both wget and curl when curl is sufficient to do all of our
downloads.  curl is also required by rpm which is part of a minimal or core
install, so it should already be on every system that will run this script.
2021-05-07 16:34:42 +12:00
029f172fe3 Use exec to redirect output to log instead of subshell
Avoid forking a subshell by using exec to redirect output to log file.
Additional logging improvements are: Set filename at the top of script once
instead of hard-coding it throughout the script.  Log both stdout and stderr.
2021-05-07 16:22:45 +12:00
ce79f250ce Use printf instead of echo
Use printf instead of echo -e and echo for various different reasons.  See
https://wiki.bash-hackers.org/commands/builtin/echo#portability_considerations

Also interpolation of escape sequences is no longer necessary since they are
output from tput now (see previous commit).
2021-05-07 08:07:26 +12:00
cb92952867 Use tput for colors.
Color codes may vary from one terminal to another.  Use tput to always get the
right codes for the terminal in use.
2021-05-07 07:02:40 +12:00
Louis Abel
5e22c910a5
Merge pull request #9 from carterpeel/main
Added colors & redid readme.md
2021-05-04 12:26:40 -07:00
77f7ec6043 Added color to the script 2021-05-04 00:18:33 -04:00
58b23970a5 Touched up readme 2021-05-03 22:36:49 -04:00
a515cf6692 Touched up readme 2021-05-03 22:35:41 -04:00
99851955bb Merge branch 'main' of https://github.com/carterpeel/rocky-tools into main 2021-05-03 22:34:24 -04:00
ff225d733b Touched up README & fixed all bracket syntax in centos2rocky.sh 2021-05-03 22:33:47 -04:00
Louis Abel
00a3f2864d
Merge pull request #8 from carterpeel/main
Added logging facility & non-builtin package sanity checks
2021-05-03 16:02:01 -07:00
Carter Peel
4e106093d3
Changed shebang to "#!/usr/bin/env bash" 2021-05-03 17:03:52 -04:00
Carter Peel
626cef11ab Added log output and Wget/Curl sanity checks 2021-05-03 16:47:10 -04:00
4f36ce43a5 Added logging facility 2021-05-03 14:26:13 -04:00
nazunalika
32a574c7f7
add -L to mitigate issues 2021-05-02 10:47:22 -07:00
nazunalika
bd1c8321df
ignore shellcheck globbing 2021-05-02 10:30:19 -07:00
nazunalika
78df5a0131
english locale only for runtime 2021-05-02 09:50:33 -07:00
nazunalika
70b4e534b8
comments 2021-05-02 05:15:39 -07:00
nazunalika
efe8bb512e
fix variable for curl 2021-05-02 05:05:41 -07:00
nazunalika
58de053cbc
Attempt Fixes
* Attempt to consolidate URL's
* Attempt to find correct release versions for consistency to minor
  release that is supported - This also allows to remove minor version
  and just use major version.
* Pull RPM's instead of trying to install directly from the URL
2021-05-01 18:06:53 -07:00
nazunalika
2aeea50186
gpg 2021-05-01 14:30:35 -07:00
nazunalika
4991811242
fix release ID 2021-04-30 14:42:43 -07:00
nazunalika
7d18ba50d6
centos linux repos 2021-04-30 09:39:30 -07:00
nazunalika
f5f9ac2761
fix readme 2021-04-25 10:10:34 -07:00
nazunalika
4738f10cfc
init 2021-04-25 10:08:19 -07:00