Skip to content

Commit

Permalink
Better way to get the script directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrocaselani committed May 19, 2019
1 parent 1a1d8df commit 756b7b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update_translations
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

SCRIPTS_DIR=$(cd "$(dirname "$0")" || exit 1; pwd)
SCRIPTS_DIR=$(echo "${BASH_SOURCE[0]}" | xargs dirname | xargs -I % sh -c 'cd % && pwd')
COUCH_TRACKER_CORE_DIR=$(cd "$SCRIPTS_DIR"/../CouchTrackerCore || exit 1; pwd)
TRANSLATIONS_ZIP_PATH="${SCRIPTS_DIR}/translations.zip"

Expand Down

0 comments on commit 756b7b1

Please sign in to comment.