From 438a1a8cbc06740b16fb55db1030692148142586 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 18 Dec 2017 10:22:18 +0100 Subject: bin/*: satisfy shellcheck --- bin/get-package-updates | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'bin/get-package-updates') diff --git a/bin/get-package-updates b/bin/get-package-updates index 51d4651..e49d37c 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -200,7 +200,7 @@ for repo in ${repo_names}; do # shellcheck disable=SC2016 sed 's|^\(.\t\)\([^/]\+\)/\([^/]\+\)/\(.\+\)$|\2 \1\3/repos/\2-x86_64/\4|' | \ while read -r pkg_repo rest; do - eval "printf '%s %s\n'" \ + eval 'printf '"'"'%s %s\n'"'" \ "$(printf '"${new_repo_revisions__%s}"' "$(find_git_repository_to_package_repository "${pkg_repo}")")" \ "'${rest}'" done @@ -371,19 +371,19 @@ find "${work_dir}/package-infos/" -maxdepth 1 -name '*.builds' -printf '%f\n' | sort -k1,1 > \ "${tmp_dir}/newest-revisions" -sed " - s|^\S\+ |${work_dir}/package-infos/| - s|\$|.builds| -" "${tmp_dir}/newest-revisions" | \ +sed ' + s|^\S\+ |'"${work_dir}"'/package-infos/| + s|$|.builds| +' "${tmp_dir}/newest-revisions" | \ xargs -r cat | \ sort | \ uniq -c > \ "${work_dir}/built-packages" -sed " - s|^\S\+ |${work_dir}/package-infos/| +sed ' + s|^\S\+ |'"${work_dir}"'/package-infos/| s|\$|.build-depends| -" "${tmp_dir}/newest-revisions" | \ +' "${tmp_dir}/newest-revisions" | \ xargs -r grep -HF '' | \ sed ' s|\(\.[^.]\+\)\{4\}:\([^:]\+\)$| \2| @@ -453,7 +453,7 @@ while read -r package git_revision mod_git_revision repository; do # add "$dependency -> $pkgname" to build-order list sed "s|\$| ${package}|" "${work_dir}/package-infos/${package}.${git_revision}.${mod_git_revision}.${repository}.build-depends" # add "base/base-devel -> $pkgname" to build-order list - printf "%s ${package}\n" 'base' 'base-devel' + printf '%s '"${package}"'\n' 'base' 'base-devel' done \ < "${work_dir}/build-list.new" \ > "${work_dir}/build-order" -- cgit v1.2.3-70-g09d2