Merge pull request 'formatting-cleanup' (#6) from stack/toolkit:formatting-cleanup into devel

Reviewed-on: #6
This commit is contained in:
Louis Abel 2022-11-22 03:11:14 +00:00
commit 29ca509d40
4 changed files with 10 additions and 3 deletions

View File

@ -150,6 +150,10 @@ security is important, actually work and function correctly.
With that said, There is no reason to disable integral security layers on your With that said, There is no reason to disable integral security layers on your
system. system.
### Should EPEL be enabled?
No. The point is to test Rocky packages, not EPEL. There are also package
differences that will break (eg: nc -> nmap-ncat vs netcat).
Current Tree Current Tree
------------ ------------
``` ```

View File

@ -36,7 +36,7 @@ function r_processor() {
if [[ "$(basename ${file})" =~ README|^\.|^_ ]]; then if [[ "$(basename ${file})" =~ README|^\.|^_ ]]; then
continue continue
fi fi
[ -x "${file}" ] && "${file}" [ -x "${file}" ] && echo "Begin processing script: ${file}" && "${file}"
done done
return 0 return 0
} }

View File

@ -1,8 +1,9 @@
#!/bin/bash #!/bin/bash
r_log "archive" "Verifying gzip binaries" r_log "archive" "Verifying gzip binaries"
echo -n "Processing; "
for bin in gunzip gzexe gzip zcat zcmp zdiff zegrep zfgrep zforce zgrep zless zmore znew; do for bin in gunzip gzexe gzip zcat zcmp zdiff zegrep zfgrep zforce zgrep zless zmore znew; do
echo -n "$bin" echo -n "$bin "
r_log "archive" "$bin" r_log "archive" "$bin"
$bin --version &> /dev/null || r_checkExitStatus 1 $bin --version &> /dev/null || r_checkExitStatus 1
done done

View File

@ -11,8 +11,10 @@ PASSER=/var/tmp/cpio/pass
r_log "cpio" "Test basic copy out" r_log "cpio" "Test basic copy out"
mkdir -p "$OUTTER" "$INNER" "$PASSER" mkdir -p "$OUTTER" "$INNER" "$PASSER"
# Ensure at least one file exists in /tmp to prevent errors.
echo 1 > $(mktemp)
# shellcheck disable=2012 # shellcheck disable=2012
ls /tmp | cpio -o > "$OUTTER"/cpio.out find /tmp -type f | cpio -o > "$OUTTER"/cpio.out 2> /dev/null
r_checkExitStatus $? r_checkExitStatus $?
r_log "cpio" "Test basic copy in" r_log "cpio" "Test basic copy in"