test: range testing, upload part copy, shellcheck, cleanup

This commit is contained in:
Luke McCrone
2024-05-28 17:58:49 -03:00
parent 83136aa40f
commit 8d1b5c4339
18 changed files with 314 additions and 190 deletions

View File

@@ -8,8 +8,7 @@ check_for_alias() {
return 2
fi
while IFS= read -r line; do
error=$(echo "$line" | grep -w "$MC_ALIAS ")
if [[ $? -eq 0 ]]; then
if echo "$line" | grep -w "$MC_ALIAS "; then
return 0
fi
done <<< "$aliases"