Commits

Jakub Wilk committed c1baabc

tools/source-tarball-from-mercurial: use $() instead of backticks.

Comments (0)

Files changed (1)

tools/source-tarball-from-mercurial

 pwd="$PWD"
 name=mbank-cli
 revision="${1:-tip}"
-version=`hg log -r "$revision" --template='{date|isodate}' | head -c 10 | tr -d -`
-sourceroot=`mktemp -d -t "$name-source-XXXXXX"`
+version=$(hg log -r "$revision" --template='{date|isodate}' | head -c 10 | tr -d -)
+sourceroot=$(mktemp -d -t "$name-source-XXXXXX")
 export TAR_OPTIONS='--owner root --group root --mode a+rX'
 export GZIP='-9 -n'
 mkdir -p "$sourceroot/$name-$version"