Make function in package script more portable

The script in the standalone package currently fails on OSes like
Ubuntu where /bin/sh does not support functions declared with the
function keyword.

This removes the function keyword from `follow_links`.
This commit is contained in:
Jen Thakar 2018-01-26 22:03:55 -08:00
parent 2f1e40eb35
commit ccbe35da77

View File

@ -7,7 +7,7 @@
# executable and a snapshot of Sass. It can be created with `pub run grinder
# package`.
function follow_links() {
follow_links() {
file="$1"
while [ -h "$file" ]; do
# On Mac OS, readlink -f doesn't work.