replace backticks with $()

This commit is contained in:
Roland Walker
2014-05-22 10:47:02 -04:00
parent 1465a07263
commit 88d08deeff
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ _list_apps_in_pkg () {
if [[ -d "$opt_pkg" ]]; then
pkgdir="$opt_pkg"
else
local tmpdir=`/usr/bin/mktemp -d -t list_ids_in_pkg`
local tmpdir="$(usr/bin/mktemp -d -t list_ids_in_pkg)"
trap "/bin/rm -rf -- '$tmpdir'" EXIT
pkgdir="$tmpdir/unpack"
/usr/sbin/pkgutil --expand "$opt_pkg" "$tmpdir/unpack" "$pkgdir"
+1 -1
View File
@@ -64,7 +64,7 @@ _list_ids_in_pkg () {
pkgdir="$(/usr/bin/readlink "$pkgdir")"
fi
else
local tmpdir=`/usr/bin/mktemp -d -t list_ids_in_pkg`
local tmpdir="$(/usr/bin/mktemp -d -t list_ids_in_pkg)"
trap "/bin/rm -rf -- '$tmpdir'" EXIT
pkgdir="$tmpdir/unpack"
/usr/sbin/pkgutil --expand "$1" "$tmpdir/unpack" "$pkgdir"