Make shfmt happier
This commit is contained in:
@@ -20,16 +20,16 @@ file_type=$(sniff_file_type "$file")
|
||||
|
||||
export WOULD_REFORMAT=would_reformat
|
||||
|
||||
if [[ $file_type = "javascript" || \
|
||||
$file_type = "vue" || \
|
||||
$file_type = "typescript" || \
|
||||
$file_type = "css" || \
|
||||
$file_type = "php" || \
|
||||
$file_type = "html" || \
|
||||
$file_type = "jsx" || \
|
||||
$file_type = "tsx" || \
|
||||
$file_type == "css" || \
|
||||
$file_type == "scss" || \
|
||||
if [[ $file_type = "javascript" ||
|
||||
$file_type = "vue" ||
|
||||
$file_type = "typescript" ||
|
||||
$file_type = "css" ||
|
||||
$file_type = "php" ||
|
||||
$file_type = "html" ||
|
||||
$file_type = "js" ||
|
||||
$file_type = "ts" ||
|
||||
$file_type == "css" ||
|
||||
$file_type == "scss" ||
|
||||
$file_type = "sh" ]]; then
|
||||
out=$("$(wfroot "$DIR")"/./prettier.sh "$file" 2>&1 > /dev/null)
|
||||
out=$("$WF_ROOT"/./prettier.sh "$file" 2>&1 >/dev/null)
|
||||
|
||||
Reference in New Issue
Block a user