diff options
author | Erich Eckner <git@eckner.net> | 2017-08-02 14:32:30 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-02 14:32:30 +0200 |
commit | 93d2b2ee8ae79b565d57f1692f96f37695ef8b39 (patch) | |
tree | bd42cc7643b7bd5ceaff1327d25cb22e0a48486f /bin/show-dependencies | |
parent | 8601cfbc675a80160118ada110eb0988f7ae3c59 (diff) | |
download | builder-93d2b2ee8ae79b565d57f1692f96f37695ef8b39.tar.xz |
remove unnecessary and confusing quotes
Diffstat (limited to 'bin/show-dependencies')
-rwxr-xr-x | bin/show-dependencies | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/show-dependencies b/bin/show-dependencies index e6eb070..4db1864 100755 --- a/bin/show-dependencies +++ b/bin/show-dependencies @@ -5,15 +5,15 @@ # Create a lock file. if [ $# -eq 0 ]; then - broken="$( + broken=$( ls "${work_dir}/package-states" | \ grep '\.broken$' - )" - broken="$( + ) + broken=$( echo "${broken}" | \ sed 's|\(\.[^.]\+\)\{4\}$||' | \ sort -u - )" + ) "$0" ${broken} || \ exit $? ( @@ -45,7 +45,7 @@ if ! flock -n 9; then exit fi -tmp_dir="$(mktemp -d)" +tmp_dir=$(mktemp -d) trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT sort -u "${work_dir}/build-order" | \ @@ -97,7 +97,7 @@ for target_package in "$@"; do "${tmp_dir}/knots" last_sum='' - current_sum="$(sha512sum "${tmp_dir}/build-order")" + current_sum=$(sha512sum "${tmp_dir}/build-order") while ! [ "${last_sum}" = "${current_sum}" ]; do last_sum="${current_sum}" @@ -119,7 +119,7 @@ for target_package in "$@"; do sort -u "${tmp_dir}/build-order" | \ sponge "${tmp_dir}/build-order" - current_sum="$(sha512sum "${tmp_dir}/build-order")" + current_sum=$(sha512sum "${tmp_dir}/build-order") done @@ -226,10 +226,10 @@ for target_package in "$@"; do '}' >> \ "${tmp_dir}/input" - line_count="$(wc -l < "${tmp_dir}/input")" + line_count=$(wc -l < "${tmp_dir}/input") if [ "${line_count}" -gt 500 ]; then sed -i '/"base\(-devel\)\?"/d' "${tmp_dir}/input" - line_count="$(wc -l < "${tmp_dir}/input")" + line_count=$(wc -l < "${tmp_dir}/input") if [ "${line_count}" -gt 700 ]; then rm -f "${output}" >&2 printf 'Skipping graph for "%s" - would be too big (%d).\n' \ |