github.com/rakutentech/cli@v6.12.5-0.20151006231303-24468b65536e+incompatible/bin/gi18n-checkup (about)

     1  #!/bin/bash
     2  
     3  set +e
     4  
     5  export GOPATH=$HOME/go
     6  export PATH=$PATH:$GOPATH/bin
     7  
     8  go get -u github.com/maximilien/i18n4go/i18n4go
     9  OUTPUT=$?
    10  if [ $OUTPUT -ne 0 ]; then
    11    printf "Cannot install latest gi18n tool to verify strings:\n${OUTPUT}"
    12    exit 1
    13  fi
    14  
    15  OUTPUT=`i18n4go -c checkup`
    16  
    17  if [ "$OUTPUT" != "OK" ]; then
    18    echo "Error:"
    19    echo "$OUTPUT"
    20    exit 1
    21  fi