mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 12:56:48 +00:00
Fix format_all.sh
treating comments as directories
This commit is contained in:
parent
2a02e84462
commit
9f9fff0558
@ -6,7 +6,7 @@ set -e
|
||||
|
||||
WORKSPACE_ROOT="$(dirname "$(readlink -f "$0")")/.."
|
||||
|
||||
EXCLUDED_CRATES=$(sed -n '/^\[workspace\]/,/^\[.*\]/{/exclude = \[/,/\]/p}' "$WORKSPACE_ROOT/Cargo.toml" | grep -v "exclude = \[" | tr -d '", \]')
|
||||
EXCLUDED_CRATES=$(sed -n -e 's/#.*//; /^\s*$/d' -e '/^\[workspace\]/,/^\[.*\]/{/exclude = \[/,/\]/p}' "$WORKSPACE_ROOT/Cargo.toml" | grep -v "exclude = \[" | tr -d '", \]')
|
||||
|
||||
CHECK_MODE=false
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user