target/shfmt
This commit is contained in:
parent
f3851dbc88
commit
0dfe86a970
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
rwx_shfmt() {
|
rwx_shfmt() {
|
||||||
local root="${1}"
|
local path="${1}"
|
||||||
shfmt --diff "${root}"
|
shfmt --diff "${path}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,5 +76,6 @@ $(cat "${RWX_ROOT_SYSTEM}/${file}")
|
||||||
done
|
done
|
||||||
rwx_ifs_unset
|
rwx_ifs_unset
|
||||||
rwx_file_write "${target}" "${text}"
|
rwx_file_write "${target}" "${text}"
|
||||||
|
rwx_shfmt "${target}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue