mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-21 01:26:35 +00:00
16 lines
436 B
Bash
Executable File
16 lines
436 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Safe bash settings
|
|
# -e Exit on command fail
|
|
# -u Exit on unset variable
|
|
# -o pipefail Exit if piped command has error code
|
|
set -eu -o pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
if git diff "${TRAVIS_COMMIT_RANGE}" --name-only | grep -Fxq "src/translations/en.json" ; then
|
|
script/translations_upload_base
|
|
else
|
|
echo "No changes to src/translations/en.json. Skipping translation upload."
|
|
fi
|