Make shfmt happier
This commit is contained in:
@@ -81,10 +81,13 @@ function custom_formatter() {
|
||||
echo "use-default"
|
||||
}
|
||||
|
||||
## WOULD_FORMAT_PROJECT_ROOT=$(project_root $1)
|
||||
|
||||
# FIXME: This needs to be made customizable
|
||||
function sniff_file_type() {
|
||||
ff=$1
|
||||
shift
|
||||
|
||||
file_type=
|
||||
|
||||
if [[ $ff == *.py ]]; then
|
||||
@@ -120,7 +123,10 @@ function sniff_file_type() {
|
||||
echo $file_type
|
||||
}
|
||||
|
||||
|
||||
function wrflog() {
|
||||
echo "$@" >>/tmp/wrflog
|
||||
}
|
||||
|
||||
# WOULD_FORMAT_INSTALLATION_ROOT=$(wfroot)
|
||||
|
||||
export WOULD_FORMAT_PROJECT_ROOT
|
||||
|
||||
Reference in New Issue
Block a user