auto-shellcheck and shfmt at the script end

main
Andrew Coleman 2023-07-28 08:32:14 -04:00
parent a57c555a3d
commit 2ea9a291c4
1 changed files with 4 additions and 1 deletions

View File

@ -116,7 +116,7 @@ if [ ! -e /Applications/WezTerm.app ]; then
install_latest_wezterm
else
current_wezterm=$(/Applications/WezTerm.app/Contents/MacOS/wezterm -V | awk '{print $2}')
if ! echo $LATEST_WEZTERM | grep "$current_wezterm"; then
if ! echo "$LATEST_WEZTERM" | grep "$current_wezterm" >/dev/null; then
install_latest_wezterm
fi
fi
@ -319,3 +319,6 @@ install_typst() {
}
[ -e "/usr/local/bin/typst" ] || install_typst
shellcheck "$0" || exit 1
shfmt -i 2 -d -s "$0"