Address shellcheck issue with describe script

pull/99/head
Hamish Coleman 6 years ago
parent 1c2afa7e12
commit 8ddbbe7559

@ -14,9 +14,7 @@ if [ -z "$1" ]; then
exit 1
fi
LINE=$(egrep "^$FILE " "$DESCRIPTIONS")
if [ $? -ne 0 ]; then
if ! LINE=$(grep -E "^$FILE " "$DESCRIPTIONS"); then
echo "Unknown file $FILE"
exit 1
fi

Loading…
Cancel
Save