mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 20:36:35 +00:00
Safety check for translations upload script (#573)
This commit is contained in:
parent
a8b5d07d66
commit
aa389bf206
@ -22,6 +22,14 @@ PROJECT_ID="3420425759f6d6d241f598.13594006"
|
||||
LOCAL_FILE="$(pwd)/src/translations/en.json"
|
||||
LANG_ISO=en
|
||||
|
||||
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
if [ "$CURRENT_BRANCH" != "master" ]
|
||||
then
|
||||
echo "Please only run the translations upload script from a clean checkout of master."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker run \
|
||||
-v ${LOCAL_FILE}:/opt/src/${LOCAL_FILE} \
|
||||
lokalise/lokalise-cli lokalise \
|
||||
|
Loading…
x
Reference in New Issue
Block a user