clean up a bit and fix scripts
All checks were successful
Build and Test / splatoon (push) Successful in 3m43s
Build and Test / friends (push) Successful in 3m53s

This commit is contained in:
Maple 2026-04-26 14:57:02 +02:00
commit f870853630
6 changed files with 15 additions and 6 deletions

View file

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail
if [ -z ${EDITION+x} ]; then if [ -z ${EDITION+x} ]; then
EDITION=$1 EDITION=$1
fi fi

View file

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e pipefail
set -euo pipefail
TMP_FEATURES_TRAILINGCOMMA=$(yq ea ".$EDITION.features" editions.yaml | sed 's/- //g' | tr '\n' ',') TMP_FEATURES_TRAILINGCOMMA=$(yq ea ".$EDITION.features" editions.yaml | sed 's/- //g' | tr '\n' ',')
export EDITION_FEATURES=${TMP_FEATURES_TRAILINGCOMMA::-1} export EDITION_FEATURES=${TMP_FEATURES_TRAILINGCOMMA::-1}
SETTINGS=$(yq ea ".$EDITION.settings" editions.yaml | yq 'keys[]') SETTINGS=$(yq ea ".$EDITION.settings" editions.yaml | yq 'keys[]')

View file

@ -1,9 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e pipefail set -euo pipefail
SETTINGS=$(yq ea "." editions.yaml | yq 'keys[]') SETTINGS=$(yq ea "." editions.yaml | yq 'keys[]')
IFS=$'\n' IFS=$'\n'
while IFS=$'\n' read -r EDITION; do while IFS=$'\n' read -r EDITION; do
export EDITION
./check-edition.sh $EDITION ./check-edition.sh $EDITION
done <<< "$SETTINGS" done <<< "$SETTINGS"

View file

@ -1,9 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e pipefail
set -euo pipefail
if [ -z ${EDITION+x} ]; then if [ -z ${EDITION+x} ]; then
EDITION=$1 export EDITION=$1
fi fi
# comma seperated list of features for the specified version # comma seperated list of features for the specified version

View file

@ -1,9 +1,8 @@
use crate::reggie::{UnitPacketRead, UnitPacketWrite}; use crate::reggie::{UnitPacketRead, UnitPacketWrite};
use log::{error, info}; use log::{error, info};
use std::iter::FilterMap;
use std::ops::Deref; use std::ops::Deref;
use std::sync::{Arc, Weak}; use std::sync::{Arc, Weak};
use std::{slice, vec}; use std::vec;
use tokio::io::{AsyncRead, AsyncWrite, AsyncWriteExt}; use tokio::io::{AsyncRead, AsyncWrite, AsyncWriteExt};
use tokio::sync::Notify; use tokio::sync::Notify;
use tokio::sync::mpsc::{Receiver, Sender, channel}; use tokio::sync::mpsc::{Receiver, Sender, channel};

View file

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail
if [ -z ${EDITION+x} ]; then if [ -z ${EDITION+x} ]; then
EDITION=$1 EDITION=$1
fi fi