From 95aad59ad35b0ec70d7b0d4dafd8d1fd14fe2992 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 16 Mar 2012 15:13:41 -0400 Subject: [PATCH] cros_workon: fix regression in "list-all" behavior The addition of the mask file made the output of "list-all" a little weird as it includes it as a "board". Filter out all *.mask files to avoid that. BUG=None TEST=`./cros_workon list-all` no longer shows "x86-alex.mask:" Change-Id: I42c1f6efb53e1d75840c49901c6d2d9edd997fd4 Reviewed-on: https://gerrit.chromium.org/gerrit/18397 Commit-Ready: Mike Frysinger Reviewed-by: Mike Frysinger Tested-by: Mike Frysinger --- cros_workon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cros_workon b/cros_workon index 31d72c1b75..2e8c24074f 100755 --- a/cros_workon +++ b/cros_workon @@ -235,7 +235,7 @@ show_live_ebuilds () { show_all_live_ebuilds () { local workon_file for workon_file in ${WORKON_DIR}/*; do - if [ -s "${workon_file}" ]; then + if [[ -s ${workon_file} && ${workon_file} != *.mask ]] ; then echo -e "${V_BOLD_GREEN}$(basename ${workon_file}):${V_VIDOFF}" sed -n 's/^=\(.*\)-9999$/ \1/p' "${workon_file}" echo ""