Skip to content

Commit

Permalink
Use boolean instead of strings to dispatch behavior of server tests b…
Browse files Browse the repository at this point in the history
…y optional arguments
  • Loading branch information
ryosuketc committed Nov 20, 2020
1 parent c71427b commit 46724d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/server_tests
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null
cd "$(dirname $0)/.."

# Parse arguments and set flags
SKIP_UPDATE_TRANSLATIONS='false'
SKIP_UPDATE_TRANSLATIONS=false
for arg in "$@"; do
shift
if [[ "${arg}" == "--skip_update_translations" ]]; then
SKIP_UPDATE_TRANSLATIONS='true'
SKIP_UPDATE_TRANSLATIONS=true
continue
fi
# All arguments other than "--skip_update_translations" remains intact
Expand All @@ -44,7 +44,7 @@ done
readonly SKIP_UPDATE_TRANSLATIONS

echo
if [[ "${SKIP_UPDATE_TRANSLATIONS}" == 'true' ]]; then
if [[ "${SKIP_UPDATE_TRANSLATIONS}" == true ]]; then
echo "--- Skipped updating translations"
else
echo "--- Updating translations"
Expand Down

0 comments on commit 46724d5

Please sign in to comment.