Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions resources/shellHelperFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ verify_on_mac() {
fi
}

# The list of valid projects that our build scripts ought expect.
projects=("android" "ios" "linux" "lmlayer" "mac" "web" "windows")
# The list of valid platforms that our build scripts ought expect.
platforms=("android" "ios" "linux" "lmlayer" "mac" "web" "win")

# Used to validate a specified 'project' parameter.
_verify_project() {
# Used to validate a specified 'platform' parameter.
_verify_platform() {
match=false
for proj in "${projects[@]}"
for proj in "${platforms[@]}"
do
if [[ "${proj}" = "$1" ]]; then
match=true
Expand Down Expand Up @@ -108,7 +108,7 @@ write_download_info() {

local DATE HASH SIZE DOWNLOAD_INFO STAT_FLAGS

_verify_project "${PLATFORM}"
_verify_platform "${PLATFORM}"

# shellcheck disable=SC2312
if [[ "${BUILDER_OS}" == "mac" ]] && [[ $(command -v stat) == /usr/bin/stat ]]; then
Expand Down