Echo output when pkg-map fails
When the call to pkg-map fails, it prints the error to stdout. However, this output is lost when pkg-map is executed in a subshell, so the actual error is never seen. This change adds an explicit echo so the error is shown. Change-Id: Id6f4fae6acadfe2839b408fb2dd11fb65d65df6e
This commit is contained in:
parent
61c192ea3c
commit
3df0a08394
@ -60,7 +60,10 @@ for i in "$@"
|
|||||||
do
|
do
|
||||||
PKG_NAME=$i
|
PKG_NAME=$i
|
||||||
if [ -n "$MAP_ELEMENT" ]; then
|
if [ -n "$MAP_ELEMENT" ]; then
|
||||||
PKG_NAME=$(pkg-map --element $MAP_ELEMENT $i)
|
if ! PKG_NAME=$(pkg-map --element $MAP_ELEMENT $i); then
|
||||||
|
echo "bin/pkg-map error. $PKG_NAME"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ ! ${BLACKLIST[*]} =~ $PKG_NAME ]]; then
|
if [[ ! ${BLACKLIST[*]} =~ $PKG_NAME ]]; then
|
||||||
WHITELIST+="$i "
|
WHITELIST+="$i "
|
||||||
|
@ -57,7 +57,10 @@ for i in "$@"
|
|||||||
do
|
do
|
||||||
PKG_NAME=$i
|
PKG_NAME=$i
|
||||||
if [ -n "$MAP_ELEMENT" ]; then
|
if [ -n "$MAP_ELEMENT" ]; then
|
||||||
PKG_NAME=$(pkg-map --element $MAP_ELEMENT $i)
|
if ! PKG_NAME=$(pkg-map --element $MAP_ELEMENT $i); then
|
||||||
|
echo "bin/pkg-map error. $PKG_NAME"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ ! ${BLACKLIST[*]} =~ $PKG_NAME ]]; then
|
if [[ ! ${BLACKLIST[*]} =~ $PKG_NAME ]]; then
|
||||||
WHITELIST="$WHITELIST $i"
|
WHITELIST="$WHITELIST $i"
|
||||||
|
Loading…
Reference in New Issue
Block a user