and this is the shellcheck output:
Code:
Line 51:
else
^-- SC1009: The mentioned syntax error was in this else clause.
Line 65:
if [ -x /usr/bin/dircolors ]; then
^-- SC1046: Couldn't find 'fi' for this 'if'.
^-- SC1073: Couldn't parse this if expression. Fix to allow more checks.
Line 95:
^-- SC1047: Expected 'fi' matching previously mentioned 'if'.
^-- SC1072: Expected 'fi'. Fix any mentioned problems and try again.