File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -117,12 +117,13 @@ for tag in $tags; do
117117 '
118118 ) "
119119
120- if parent=" $( bashbrew parents " $bashbrewImage " | grep " ^${tag%%:* } :" ) " && [ -n " $parent " ]; then
120+ if parent=" $( bashbrew parents --depth=1 " $bashbrewImage " | grep " ^${tag%%:* } :" ) " && [ -n " $parent " ]; then
121121 if [ " $( wc -l <<< " $parent" ) " -ne 1 ]; then
122122 echo >&2 " error: '$tag ' has multiple parents in the same repository and this script can't handle that yet!"
123123 echo >&2 " $parent "
124124 exit 1
125125 fi
126+ parent=" $( bashbrew parents " $bashbrewImage " | grep " ^${tag%%:* } :" | tail -1) " # get the "ultimate" this-repo parent
126127 parentBashbrewImage=" ${parent##*/ } " # account for BASHBREW_NAMESPACE being set
127128 parent=" $( bashbrew list --uniq " $parentBashbrewImage " ) " # normalize
128129 parentMeta=" ${metas["$parent"]} "
You can’t perform that action at this time.
0 commit comments