Merge pull request #683 from bgilbert/pushd

image_to_vm: Silence stray output when --from is used
This commit is contained in:
Benjamin Gilbert 2017-05-05 16:52:21 -07:00 committed by GitHub
commit 08841b1661

View File

@ -86,7 +86,7 @@ IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images/${FLAGS_board}"
if [ -z "${FLAGS_from}" ] ; then if [ -z "${FLAGS_from}" ] ; then
FLAGS_from="$(${SCRIPT_ROOT}/get_latest_image.sh --board=${FLAGS_board})" FLAGS_from="$(${SCRIPT_ROOT}/get_latest_image.sh --board=${FLAGS_board})"
else else
pushd "${FLAGS_from}" && FLAGS_from=`pwd` && popd pushd "${FLAGS_from}" >/dev/null && FLAGS_from=`pwd` && popd >/dev/null
fi fi
if [ -z "${FLAGS_to}" ] ; then if [ -z "${FLAGS_to}" ] ; then
FLAGS_to="${FLAGS_from}" FLAGS_to="${FLAGS_from}"