瀏覽代碼

Fix minor edge case in naughty-*.sh when BASHBREW_NAMESPACE is set

Tianon Gravi 5 年之前
父節點
當前提交
cb4885a6de
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      naughty-constraints.sh
  2. 1 1
      naughty-from.sh

+ 1 - 1
naughty-constraints.sh

@@ -74,7 +74,7 @@ declare -A allNaughty=(
 	#[img:tag]=1
 )
 
-tags="$(bashbrew list --uniq "$@" | sort -u)"
+tags="$(bashbrew --namespace '' list --uniq "$@" | sort -u)"
 for img in $tags; do
 	arches="$(_arches "$img")"
 	constraints="$(bashbrew cat --format '{{ .TagEntry.Constraints | join "\n" }}' "$img" | sort -u)"

+ 1 - 1
naughty-from.sh

@@ -85,7 +85,7 @@ declare -A allNaughty=(
 	#[img:tag]=1
 )
 
-tags="$(bashbrew list --uniq "$@" | sort -u)"
+tags="$(bashbrew --namespace '' list --uniq "$@" | sort -u)"
 for img in $tags; do
 	arches="$(_arches "$img")"
 	hasNice= # do we have _any_ arches that aren't naughty? (so we can make the message better if not)