Make shfmt happier

This commit is contained in:
Michael Wolf
2023-09-30 14:55:00 -06:00
parent 952c7eeb90
commit 7322fc5f71

View File

@@ -81,10 +81,13 @@ function custom_formatter() {
echo "use-default" echo "use-default"
} }
## WOULD_FORMAT_PROJECT_ROOT=$(project_root $1)
# FIXME: This needs to be made customizable # FIXME: This needs to be made customizable
function sniff_file_type() { function sniff_file_type() {
ff=$1 ff=$1
shift shift
file_type= file_type=
if [[ $ff == *.py ]]; then if [[ $ff == *.py ]]; then
@@ -120,7 +123,10 @@ function sniff_file_type() {
echo $file_type echo $file_type
} }
function wrflog() { function wrflog() {
echo "$@" >>/tmp/wrflog echo "$@" >>/tmp/wrflog
} }
# WOULD_FORMAT_INSTALLATION_ROOT=$(wfroot)
export WOULD_FORMAT_PROJECT_ROOT