markdowny/bin/markdowny-wc
Dylan R. E. Moonfire 9e42f79fc2 Initial commit.
2016-10-31 19:25:37 -05:00

4 lines
291 B
Bash
Executable file

#!/bin/bash
rdlkf() { [ -L "$1" ] && (local lk="$(readlink "$1")"; local d="$(dirname "$1")"; cd "$d"; local l="$(rdlkf "$lk")"; ([[ "$l" = /* ]] && echo "$l" || echo "$d/$l")) || echo "$1"; }
DIR="$(dirname "$(rdlkf "$0")")"
exec /usr/bin/env node --harmony "$DIR/../lib/cli.js" count "$@"