5e310c530814e80b73b166f215225f7fca8be119

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Fix syntax error in colored-man-pages

Commit 09d2a597a5 introduced the bug, which is due to using
single brackets conditions at the same time as *.

This commit should fix it and use double brackets everywhere
else.

Fixes #4699

Diff

 1diff --git a/plugins/colored-man-pages/colored-man-pages.plugin.zsh b/plugins/colored-man-pages/colored-man-pages.plugin.zsh
 2index dd0f241f05f5856417b2224cebc6cbc5876050a8..44e0c71a1a232e2d5afd26939b9ff731fbd6f671 100644
 3--- a/plugins/colored-man-pages/colored-man-pages.plugin.zsh
 4+++ b/plugins/colored-man-pages/colored-man-pages.plugin.zsh
 5@@ -1,6 +1,6 @@
 6-if [ "$OSTYPE" = solaris* ]
 7+if [[ "$OSTYPE" = solaris* ]]
 8 then
 9-	if [ ! -x "$HOME/bin/nroff" ]
10+	if [[ ! -x "$HOME/bin/nroff" ]]
11 	then
12 		mkdir -p "$HOME/bin"
13 		cat > "$HOME/bin/nroff" <<EOF