mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 00:45:32 +00:00
This change improves our `.shellcheckrc` file so that several directives are no longer needed and source files are still found. Also remove some directives that are no longer necessary, either because the changes to `.shellcheckrc` makes them obsolete, or because the lines changed so that they no longer contain the problem. Also remove some shellcheck warnings. Build-bot: skip Test-bot: skip
16 lines
375 B
Bash
Executable file
16 lines
375 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -eu
|
|
while [[ -n "$1" ]]; do
|
|
if [[ ! -d "$1" ]]; then
|
|
shift
|
|
continue
|
|
fi
|
|
pushd "$1" > /dev/null
|
|
while IFS= read -r -d '' file; do
|
|
testname=$(basename "${file}" .kmx)
|
|
#shellcheck disable=SC2059
|
|
printf "$(basename "${file}")\t${testname#k_}\n"
|
|
done < <(find . -name \*.kmx -print0 | sort -z)
|
|
popd > /dev/null
|
|
exit 0
|
|
done
|