summaryrefslogtreecommitdiff
path: root/bin/nit-picker
diff options
context:
space:
mode:
Diffstat (limited to 'bin/nit-picker')
-rwxr-xr-xbin/nit-picker12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/nit-picker b/bin/nit-picker
index 581fa6f..7a2f785 100755
--- a/bin/nit-picker
+++ b/bin/nit-picker
@@ -17,16 +17,16 @@
if [ $# -ge 1 ] && [ "x$1" = 'x-n' ]; then
>&2 echo 'not joining irc'
irc=false
- remove_dependencies=false
+ repair_dependencies=false
shift
elif [ $# -ge 1 ] && [ "x$1" = 'x-r' ]; then
>&2 echo 'repair all wrong dependencies (remove superfluid, add missing)'
irc=false
- remove_dependencies=true
+ repair_dependencies=true
shift
else
irc=true
- remove_dependencies=false
+ repair_dependencies=false
# shellcheck disable=SC2016
if [ $# -ne 0 ]; then
>&2 echo 'usage: nit-picker [-n|-r [$single_test]]'
@@ -102,7 +102,7 @@ while pgrep -x ii >/dev/null \
if [ $# -eq 0 ]; then
# shellcheck disable=SC2016
{
- if ! "${remove_dependencies}"; then
+ if ! "${repair_dependencies}"; then
printf 'SELECT DISTINCT'
printf ' "commit",'
printf '`git_repositories`.`name`,'
@@ -261,7 +261,7 @@ while pgrep -x ii >/dev/null \
| sort -u \
> "${tmp_dir}/db-deps"
if ! diff -q "${tmp_dir}/db-deps" "${tmp_dir}/pkg-deps"; then
- if "${remove_dependencies}"; then
+ if "${repair_dependencies}"; then
cat "${tmp_dir}/db-deps" "${tmp_dir}/pkg-deps" "${tmp_dir}/pkg-deps" \
| sort \
| uniq -u \
@@ -436,7 +436,7 @@ while pgrep -x ii >/dev/null \
;;
esac
done
- if [ $# -ge 1 ] || "${remove_dependencies}"; then
+ if [ $# -ge 1 ] || "${repair_dependencies}"; then
break
fi
sleep 120