~ubuntu-branches/ubuntu/quantal/cwdaemon/quantal

« back to all changes in this revision

Viewing changes to debian/patches/01-Removed-bashism-from-cwsetup.patch

  • Committer: Package Import Robot
  • Author(s): Kamil Ignacak
  • Date: 2012-04-05 19:33:45 UTC
  • mfrom: (0.1.3)
  • Revision ID: package-import@ubuntu.com-20120405193345-jpw5uvzif9fen4m8
Tags: 0.9.5-1
* New version of upstream package;
* cwdaemon project has new home page (cwdaemon.sf.net);
* Debian patches 01-06 from 0.9.4-9 applied, debian/patch/* files removed;
* cwdaemon now has git repository, so adding watch file to debian/*;
* other necessary changes in debian/*;

  This upstream version (0.9.5) is essentially an official upstream
  release of Debian package 0.9.4-9, with Debian patches applied.
  No new features and no new fixes were added to 0.9.5, compared to
  0.9.4-9. Purpose of upstream release 0.9.5 is to establish a starting
  point for revived cwdaemon project.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: Removed bashism from cwsetup.sh script.
2
 
Author: Michael Meskes <meskes@debian.org>
3
 
 
4
 
--- cwdaemon-0.9.4.orig/cwsetup.sh
5
 
+++ cwdaemon-0.9.4/cwsetup.sh
6
 
@@ -3,7 +3,7 @@
7
 
 PATH="/bin:/sbin:/usr/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:."
8
 
 
9
 
 # check if we are root
10
 
-if [ "$EUID" != "0" ]; then
11
 
+if [ "$(id -u)" != "0" ]; then
12
 
        echo "You must run this script as root..."
13
 
        exit 1
14
 
 fi