Commit f8ab1732 authored by Heinz N. Gies's avatar Heinz N. Gies

Fix fgrep for ubuntu

parent f64ae8fa
Pipeline #12412005 passed with stage
in 3 minutes and 49 seconds
......@@ -40,7 +40,7 @@ detect_distro() {
if [ -f ${jail_root}/etc/redhat-release ]; then
echo "redhat"
elif [ -f ${jail_root}/etc/lsb-release ]; then
if fgrep -s Ubuntu ${jail_root}/etc/lsb-release; then
if fgrep -s Ubuntu ${jail_root}/etc/lsb-release > /dev/null; then
echo "ubuntu"
elif [ -f ${jail_root}/etc/debian_version ]; then
echo "debian"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment