Validate that ./calculate_average_<fork>.sh exists for each fork
This commit is contained in:
parent
7c81bfec70
commit
08d99c38e5
@ -47,6 +47,14 @@ check_command_installed java
|
|||||||
check_command_installed hyperfine
|
check_command_installed hyperfine
|
||||||
check_command_installed jq
|
check_command_installed jq
|
||||||
|
|
||||||
|
# Validate that ./calculate_average_<fork>.sh exists for each fork
|
||||||
|
for fork in "$@"; do
|
||||||
|
if [ ! -f "./calculate_average_$fork.sh" ]; then
|
||||||
|
echo "Error: ./calculate_average_$fork.sh does not exist." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
## SDKMAN Setup
|
## SDKMAN Setup
|
||||||
# 1. Custom check for sdkman installed; not sure why check_command_installed doesn't detect it properly
|
# 1. Custom check for sdkman installed; not sure why check_command_installed doesn't detect it properly
|
||||||
if [ ! -f "$HOME/.sdkman/bin/sdkman-init.sh" ]; then
|
if [ ! -f "$HOME/.sdkman/bin/sdkman-init.sh" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user