diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2015-11-17 12:13:26 (GMT) |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2015-11-17 12:13:26 (GMT) |
commit | 3c1d8625e60e31ed073beb247eaf934364a36957 (patch) | |
tree | 8685579adaf92a399a3388c7f5ca987937c781ab /scripts/populate.in | |
parent | 65fd24fc00b248c6b415a09ebd5c503288f897a1 (diff) | |
parent | 6f8e89cb5ca061e899bf3feaaf3fecf30d366c3e (diff) |
Merge pull request #268 from bhundven/consistent_usage_of_found_apps
consistency: Use exported variables of required tools
Diffstat (limited to 'scripts/populate.in')
-rw-r--r-- | scripts/populate.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/populate.in b/scripts/populate.in index 8f476e3..f68acd9 100644 --- a/scripts/populate.in +++ b/scripts/populate.in @@ -8,6 +8,7 @@ set -e install="@@CT_install@@" grep="@@CT_grep@@" sed="@@CT_sed@@" +awk="@@CT_awk@@" # Detect where the toolchain is: CT_PREFIX_DIR="$(cd "$(dirname "$0")/.."; pwd)" @@ -149,8 +150,8 @@ if [ -d "${CT_ROOT_DST_DIR}" ]; then ;; esac fi -src_inode=$(ls -1id "${CT_ROOT_SRC_DIR}/." |awk '{ print $1 }') -dst_inode=$(ls -1id "${CT_ROOT_DST_DIR}/." 2>/dev/null |awk '{ print $1 }') +src_inode=$(ls -1id "${CT_ROOT_SRC_DIR}/." |${awk} '{ print $1 }') +dst_inode=$(ls -1id "${CT_ROOT_DST_DIR}/." 2>/dev/null |${awk} '{ print $1 }') if [ "${src_inode}" -eq "$((dst_inode+0))" ]; then printf "$myname: source and destination are the same!\n" exit 1 @@ -273,7 +274,7 @@ fi # Create a temporary place where to store... temp files. rand="$( dd if=/dev/urandom bs=1024 count=1 2>/dev/null \ |md5sum \ - |awk '{ print $1; }' + |${awk} '{ print $1; }' )" CT_TMP_DIR="${TMPDIR:-/tmp}/populate-${rand}-${$}" ( umask 0077; mkdir "${CT_TMP_DIR}" ) || { printf "Could not create temporary directory\n"; exit 1; } |