OSDN Git Service

Include api token from file
authorHironori Fujimoto <broadbarredfirefish@gmail.com>
Thu, 8 Mar 2018 09:43:28 +0000 (18:43 +0900)
committerHironori Fujimoto <broadbarredfirefish@gmail.com>
Thu, 8 Mar 2018 09:43:28 +0000 (18:43 +0900)
.gitignore
update.sh

index f1852f6..ef09a92 100644 (file)
@@ -1,2 +1,3 @@
 # ignore transifex files
 transifex/
+api_token.sh
index 76d06c5..b5f8177 100755 (executable)
--- a/update.sh
+++ b/update.sh
@@ -2,6 +2,8 @@
 
 set -eu
 
+source ./api_token.sh
+
 TXDIR=transifex
 TXPROJECT=wesnoth-dev-japanese
 RESOURCES="wesnoth \
@@ -37,7 +39,7 @@ RESOURCES="wesnoth \
 # set transifex project
 if [ ! -e ${TXDIR} ]; then
        mkdir ${TXDIR}
-       tx init ${TXDIR} --skipsetup
+  tx init ${TX_DIR} --token=${TX_TOKEN} --force --no-interactive
        cd ${TXDIR}
     tx config mapping-remote https://www.transifex.com/projects/p/${TXPROJECT}/
     cd ../