Rearrange formatting code so it doesn't require a configuration
Some checks failed
Format code / Format the kernel (push) Failing after 27s
Some checks failed
Format code / Format the kernel (push) Failing after 27s
This commit is contained in:
parent
6e9a8f9dfd
commit
305f22b425
1 changed files with 8 additions and 8 deletions
16
kernel/build
16
kernel/build
|
@ -65,6 +65,14 @@
|
|||
|
||||
APHRODITE_DIR="${APHRODITE_DIR:-$TEMP_APHRODITE_DIR}"
|
||||
|
||||
if [[ $format = "true" ]]; then
|
||||
echo "[INFO] Formatting"
|
||||
pushd . 2>&1 > /dev/null
|
||||
cd "$APHRODITE_DIR"
|
||||
cargo fmt --all
|
||||
exit 0
|
||||
fi
|
||||
|
||||
DIR="${BASH_SOURCE%/*}"
|
||||
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
|
||||
|
||||
|
@ -133,14 +141,6 @@
|
|||
fi
|
||||
}
|
||||
|
||||
if [[ $format = "true" ]]; then
|
||||
echo "[INFO] Formatting"
|
||||
pushd . 2>&1 > /dev/null
|
||||
cd "$APHRODITE_DIR"
|
||||
cargo fmt --all
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [[ $# -ge 1 ]]; then
|
||||
echo "[INFO] Compiling only target $1"
|
||||
compile_one $1
|
||||
|
|
Loading…
Add table
Reference in a new issue