[debian-edu-commits] debian-edu/ 155/183: Use same style of test condition as everywhere else in this package

Alexander Alemayhu ccscanf-guest at moszumanska.debian.org
Wed Jun 11 16:48:42 UTC 2014


This is an automated email from the git hooks/post-receive script.

ccscanf-guest pushed a commit to branch master
in repository desktop-profiles.

commit 958824ae7ebf7ea4b20d103032ee98ebce3ff40b
Author: Bart Cornelis <cobaco at linux.be>
Date:   Fri May 2 13:32:29 2008 +0000

    Use same style of test condition as everywhere else in this package
---
 listingmodule | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/listingmodule b/listingmodule
index 14f1361..685e65b 100644
--- a/listingmodule
+++ b/listingmodule
@@ -53,7 +53,7 @@ test_requirement(){
 
   # initialize needed variables.  Do not give argument to groups when looking up the current
   # user, to avoid expensive lookup with LDAP NSS.
-  if [ -z "$2" ] || [ "$USER" = "$2" ]; then
+  if (test "$2"x = x) || (test "$USER" = "$2") ; then
     OUR_USER="$USER"
     OUR_GROUPS="`id -Gn`"
   else

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/desktop-profiles.git



More information about the debian-edu-commits mailing list