toolkit/func/core/pkg_archive/25-zless.sh
2021-07-04 23:50:25 -07:00

6 lines
204 B
Bash
Executable file

#!/bin/bash
r_log "archive" "Testing zless"
r_log "archive" "Generate file"
gzip -cvf /usr/lib/os-release > /var/tmp/gziptest.gz
zless -F /var/tmp/gziptest.gz | grep -q 'Rocky Linux'
r_checkExitStatus $?