From 3b95c208b09f13a98810ca875571906b997a4611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 1 Aug 2015 20:25:37 +0300 Subject: kill bashism --- common/mkiconlinks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/mkiconlinks.sh b/common/mkiconlinks.sh index b1573780..b5249e42 100755 --- a/common/mkiconlinks.sh +++ b/common/mkiconlinks.sh @@ -16,7 +16,7 @@ read NEXTLINE while [ ! -z "$NEXTLINE" ] ; do # Skip lines beginning with '#' - if [ ! "${NEXTLINE:0:1}" == '#' ]; then + if ! echo "$NEXTLINE" | grep -q '^#'; then #Extract first field, minus its trailing colon ORIG_FILE=`echo $NEXTLINE | awk '/:/{print $1}' | sed -e 's/://'` -- cgit v1.2.1