From f63937a609c5156e694dc59870cc414b0dc32f93 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Thu, 21 Oct 2021 11:55:50 -0400 Subject: [PATCH] Remove mapfile --- script-install-banner | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script-install-banner b/script-install-banner index 278f0f91..57b99b5d 100644 --- a/script-install-banner +++ b/script-install-banner @@ -20,7 +20,7 @@ else fi cat <<- 'EOF' > "$banner" -#!/usr/bin/env bash5 +#!/usr/bin/env bash echo -n ' _ _ _ _ _ @@ -73,7 +73,7 @@ dim="\e[2m" undim="\e[0m" # disk usage: ignore zfs, squashfs & tmpfs -mapfile -t dfs < <(df -H -x zfs -x squashfs -x tmpfs -x devtmpfs -x overlay --output=target,pcent,size | tail -n+2) +while IFS= read -r line; do dfs+=("$line"); done < <(df -H -x zfs -x squashfs -x tmpfs -x devtmpfs -x overlay --output=target,pcent,size | tail -n+2) printf "\ndisk usage:\n" for line in "${dfs[@]}"; do