packages: gist/stop-bashism.patch (NEW) - fix bashism

glen glen at pld-linux.org
Mon Mar 22 14:24:11 CET 2010


Author: glen                         Date: Mon Mar 22 13:24:11 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix bashism

---- Files affected:
packages/gist:
   stop-bashism.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/gist/stop-bashism.patch
diff -u /dev/null packages/gist/stop-bashism.patch:1.1
--- /dev/null	Mon Mar 22 14:24:11 2010
+++ packages/gist/stop-bashism.patch	Mon Mar 22 14:24:06 2010
@@ -0,0 +1,17 @@
+--- gist-1.0.3/gist~	2010-03-01 09:29:22.000000000 +0200
++++ gist-1.0.3/gist	2010-03-22 15:22:24.915526455 +0200
+@@ -174,11 +174,11 @@
+ 
+   def copy(content)
+     cmd = case true
+-    when system("which pbcopy &> /dev/null")
++    when system("which pbcopy > /dev/null 2>&1")
+       :pbcopy
+-    when system("which xclip &> /dev/null")
++    when system("which xclip > /dev/null 2>&1")
+       :xclip
+-    when system("which putclip &> /dev/null")
++    when system("which putclip > /dev/null 2>&1")
+       :putclip
+     end
+ 
================================================================


More information about the pld-cvs-commit mailing list