File: 0001-Use-instead-of-in-bash.patch

package info (click to toggle)
cppman 0.4.8-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,168 kB
  • sloc: python: 1,197; sh: 44; makefile: 9
file content (23 lines) | stat: -rw-r--r-- 681 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 5bdd45cd9823f7f4b360f1839d1928a16dce2351 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?ChangZhuo=20Chen=20=28=E9=99=B3=E6=98=8C=E5=80=AC=29?=
 <czchen@debian.org>
Date: Mon, 25 Apr 2016 01:09:42 +0800
Subject: Use = instead of == in bash

---
 cppman/lib/pager.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cppman/lib/pager.sh b/cppman/lib/pager.sh
index 6987277..fe83a23 100755
--- a/cppman/lib/pager.sh
+++ b/cppman/lib/pager.sh
@@ -58,7 +58,7 @@ remove_escape() {
     sed "s/$escape\[[^m]*m//g" | col -x -b
 }
 
-if [ "$pager_type" == "vim" ]; then
+if [ "$pager_type" = "vim" ]; then
   if ! which vim >/dev/null 2>&1; then
     pager_type=less
   fi