Skip to content

Commit

Permalink
fixed shellcheck suggestions reported by reviewdog
Browse files Browse the repository at this point in the history
  • Loading branch information
GeminiServer committed Jan 5, 2023
1 parent 91ef5d5 commit 8d66a49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ echo " ${AVAILABLE_LANGUAGES[*]}"
echo -n "Requested languages : "
if ((${#largs[@]})); then
for i in "${largs[@]}"; do
i=$(echo ${i} | tr 'a-z' 'A-Z')
i=$(echo "${i}" | tr 'a-z' 'A-Z')
if isInArray "$i" "${AVAILABLE_LANGUAGES[@]}"; then
echo -n "$i "
BUILD_LANGUAGES+=("$i")
Expand All @@ -124,7 +124,7 @@ if ((${#largs[@]})); then
done
echo ""
fi
if [ -z $BUILD_LANGUAGES ]; then
if [ -z "$BUILD_LANGUAGES" ]; then
echo " No custom languages selected."
echo " Building: [ALL LANGUAGES]"
BUILD_LANGUAGES+=("${AVAILABLE_LANGUAGES[@]}")
Expand All @@ -139,7 +139,7 @@ if ((${#margs[@]})); then
for i in "${margs[@]}"; do

if [[ "$i" != "Pinecil" ]] && [[ "$i" != "Pinecilv2" ]]; then # Dirty. Need to adapt the Build process to use upper cases only
i=$(echo ${i} | tr 'a-z' 'A-Z')
i=$(echo "${i}" | tr 'a-z' 'A-Z')
fi

if isInArray "$i" "${AVAILABLE_MODELS[@]}"; then
Expand All @@ -152,7 +152,7 @@ if ((${#margs[@]})); then
echo ""
fi

if [ -z $BUILD_MODELS ]; then
if [ -z "$BUILD_MODELS" ]; then
echo " No custom models selected."
echo " Building: [ALL MODELS]"
BUILD_MODELS+=("${AVAILABLE_MODELS[@]}")
Expand Down

0 comments on commit 8d66a49

Please sign in to comment.