📝 Reformatted def script

This commit is contained in:
z3rOR0ne 2022-12-01 21:47:35 -08:00
parent 421728fd9f
commit 9ea6087905

View file

@ -1,14 +1,11 @@
#!/bin/bash #!/bin/bash
#
main() { main() {
if ! command -v bat &> /dev/null ; then
if ! command -v bat &> /dev/null ; then /usr/bin/dict "${1}" | less
/usr/bin/dict "${1}" | less else
else /usr/bin/dict "${1}" | bat
/usr/bin/dict "${1}" | bat fi
fi
} }
main "$@" main "$@"