Fix output dir

This commit is contained in:
2021-12-22 13:54:36 -05:00
parent a3323c6d53
commit 820d56232e

View File

@@ -108,6 +108,7 @@ profiles() {
diffutils \ diffutils \
tar \ tar \
iperf \ iperf \
bash \
rsync " # Leave trailing whitespace rsync " # Leave trailing whitespace
# Set the default release # Set the default release
@@ -204,7 +205,8 @@ profiles() {
collectd-mod-conntrack \ collectd-mod-conntrack \
smcroute \ smcroute \
curl \ curl \
ethtool" ethtool \
kmod-ipt-nat6"
for PNAME in "${PROFILES[@]}"; do for PNAME in "${PROFILES[@]}"; do
declare -n ARR="$PNAME" declare -n ARR="$PNAME"
@@ -270,7 +272,7 @@ prerequisites() {
source /etc/os-release source /etc/os-release
if [[ "$ID" == "fedora" ]]; then if [[ "$ID" =~ ^(fedora)$ ]]; then
_pkg_list=(\ _pkg_list=(\
"@c-development" \ "@c-development" \
"@development-tools" \ "@development-tools" \
@@ -513,7 +515,7 @@ reset() {
main() { main() {
: "${DEBUG:=false}" # Set to true to enable debugging by default : "${DEBUG:=false}" # Set to true to enable debugging by default
scriptdir=$(dirname "$0") scriptdir="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 || exit $? ; pwd -P )" # https://stackoverflow.com/a/4774063
# scriptdir="$PWD" # scriptdir="$PWD"
: "${BUILDDIR:=$scriptdir}" : "${BUILDDIR:=$scriptdir}"
: "${FILESDIR:=$BUILDDIR/files}" : "${FILESDIR:=$BUILDDIR/files}"