mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
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 <vapier@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
2af1a305e3
commit
95aad59ad3
@ -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 ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user