Make shfmt happier
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user