Closed fidian closed 10 years ago
You can run a linter with bash and possibly others.
head -n 1 "${file}" | grep 'bash' | grep '^#!/' > /dev/null if [ "$?" -eq 0 ] ; then set -e bash -n "${file}" set +e fi
It's in!
You can run a linter with bash and possibly others.