[Popcon-developers] Bug#260088: Care to change the bash-scripts into sh-scripts?

David Weinehall David Weinehall <tao@debian.org>, 260088-maintonly@bugs.debian.org
Sun, 18 Jul 2004 13:47:13 +0200


Package: popularity-contest
Version: 1.22
Severity: wishlist
Tags: patch

This patch, should you choose to accept it, will change two bash-scripts
into sh-scripts.


Regards: David Weinehall

diff -ur popularity-contest-1.22-old/debian/postinst popularity-contest-1.22/debian/postinst
--- popularity-contest-1.22-old/debian/postinst	2004-04-14 01:00:33.000000000 +0300
+++ popularity-contest-1.22/debian/postinst	2004-07-18 14:31:12.000000000 +0300
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Load debconf variables
 . /usr/share/debconf/confmodule
@@ -17,7 +17,7 @@
 # safe to ignore the value fetched by loading the file above.  This
 # should allow for using debconf to reconfigure the package.
 db_get popularity-contest/participate || true
-if [ "$RET" = "yes" -o "$RET" = "YES" -o "$RET" = "true" ]; then
+if [ "$RET" = "yes" ] || [ "$RET" = "YES" ] || [ "$RET" = "true" ]; then
     PARTICIPATE="yes"
 else
     PARTICIPATE="no"
diff -ur popularity-contest-1.22-old/popcon-process.sh popularity-contest-1.22/popcon-process.sh
--- popularity-contest-1.22-old/popcon-process.sh	2004-03-14 19:01:59.000000000 +0200
+++ popularity-contest-1.22/popcon-process.sh	2004-07-18 14:31:39.000000000 +0300
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 set -e
 cd /org/popcon.debian.org/popcon-mail
 umask 0002