aboutsummaryrefslogtreecommitdiffstats
path: root/crowdin/upload
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-11-24 21:44:48 +0100
committerSamuel Tardieu <sam@rfc1149.net>2014-11-24 21:47:40 +0100
commit75ca70852b9820a545da9594e76865e2db2950c5 (patch)
tree1de52012e48a28e96963a63f25eda10279a98608 /crowdin/upload
parentcbe5cf089d71e5742cc40637c380cde3e04e5505 (diff)
downloadcgeo-75ca70852b9820a545da9594e76865e2db2950c5.zip
cgeo-75ca70852b9820a545da9594e76865e2db2950c5.tar.gz
cgeo-75ca70852b9820a545da9594e76865e2db2950c5.tar.bz2
Fix crowdin local patches application
Also use stackable bash subshells instead of backquotes.
Diffstat (limited to 'crowdin/upload')
-rwxr-xr-xcrowdin/upload4
1 files changed, 2 insertions, 2 deletions
diff --git a/crowdin/upload b/crowdin/upload
index 547989e..b7010ea 100755
--- a/crowdin/upload
+++ b/crowdin/upload
@@ -15,7 +15,7 @@
# upload_file uploads the file in parameter 1 to the crowdin file name in parameter 2
upload_file() {
if [ -f "$2" ]; then
- CROWDIN_LANG=`map_to_crowdin_code "$1"`
+ CROWDIN_LANG=$(map_to_crowdin_code "$1")
crowdin_surf \
-F \"files[$3]=@$2\" \
-F \"language=$CROWDIN_LANG\" \
@@ -26,7 +26,7 @@ upload_file() {
fi
}
-. "`dirname $0`/globals"
+. "$(dirname $0)/globals"
if [ $# -eq 0 ]; then
debug "no languages passed - aborting."