Ver código fonte

remove boilerplate code

cyberta 6 anos atrás
pai
commit
f096964789
1 arquivos alterados com 2 adições e 28 exclusões
  1. 2 28
      updateTranslations.sh

+ 2 - 28
updateTranslations.sh

@@ -1,15 +1,8 @@
 #!/bin/bash
 
+# This script pulls android translations from transifex and converts them to apple strings files. 
+# Credits to Daniel Cohen Gindi.
 
-function quit {
-    echo "Task failed. Exit value: $?."
-    cleanUp
-    exit 1
-}
-
-function cleanUp {
-    echo ""
-}
 
 # ----Main-----
 
@@ -28,25 +21,6 @@ then
     exit 
 fi
 
-# init parameters
-for ((i=1;i<=$#;i++)); 
-do
-   if [[ ${!i} = "-h" || ${!i} = "-help" ]];
-    then 
-        echo -e "
-        This script pulls android translations from transifex and converts them to apple strings files. 
-        Credits to Daniel Cohen Gindi."
-        
-        exit
-
-    else
-        echo "Invalid argument: ${!i}"
-        exit
-    fi
-
-done;
-
-
 if [[ -d $TMP_ANDROID_TRANSLATIONS ]] 
 then 
     rm -rf $TMP_ANDROID_TRANSLATIONS