Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (b1505fa9938c3accde1bc83421988203c2d08b89)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Justin Boffemmyer <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (b1505fa9938c3accde1bc83421988203c2d08b89)
  • Date: Tue, 14 Oct 2008 12:47:10 -0500

GIT changes to test cauldron by Justin Boffemmyer <flux AT sourcemage.org>:

scripts/add-sauce.sh | 2 +-
scripts/cauldronchr.sh | 2 +-
scripts/cleaniso.sh | 2 +-
scripts/mkiso.sh | 2 +-
scripts/mkrelease.sh | 2 +-
scripts/mksystem.sh | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit b1505fa9938c3accde1bc83421988203c2d08b89
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>

scripts/*: don't pass output of which to STDOUT

The scripts which had sudo support added use which to test for the
presence of sudo on the system. However, if not found, which will
output that it wasn't found in $PATH. Now we redirect which's output
to /dev/null, since we just care about its exit status.

diff --git a/scripts/add-sauce.sh b/scripts/add-sauce.sh
index 2b65c89..cbfe6c4 100755
--- a/scripts/add-sauce.sh
+++ b/scripts/add-sauce.sh
@@ -46,7 +46,7 @@ SUDOCMD=""

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo) ]]
+ if [[ -x $(which sudo > /dev/null) ]]
then
SUDOCMD="sudo"
else
diff --git a/scripts/cauldronchr.sh b/scripts/cauldronchr.sh
index 7220247..ec815ac 100755
--- a/scripts/cauldronchr.sh
+++ b/scripts/cauldronchr.sh
@@ -46,7 +46,7 @@ SUDOCMD=""

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo) ]]
+ if [[ -x $(which sudo > /dev/null) ]]
then
SUDOCMD="sudo"
else
diff --git a/scripts/cleaniso.sh b/scripts/cleaniso.sh
index 2ca8462..0211c0d 100755
--- a/scripts/cleaniso.sh
+++ b/scripts/cleaniso.sh
@@ -39,7 +39,7 @@ SUDOCMD=""

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo) ]]
+ if [[ -x $(which sudo > /dev/null) ]]
then
SUDOCMD="sudo"
else
diff --git a/scripts/mkiso.sh b/scripts/mkiso.sh
index 5141fbf..1615cb2 100755
--- a/scripts/mkiso.sh
+++ b/scripts/mkiso.sh
@@ -49,7 +49,7 @@ SUDOCMD=""

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo) ]]
+ if [[ -x $(which sudo > /dev/null) ]]
then
SUDOCMD="sudo"
else
diff --git a/scripts/mkrelease.sh b/scripts/mkrelease.sh
index 8c820d8..b21dd13 100755
--- a/scripts/mkrelease.sh
+++ b/scripts/mkrelease.sh
@@ -47,7 +47,7 @@ SUDOCMD=""

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo) ]]
+ if [[ -x $(which sudo > /dev/null) ]]
then
SUDOCMD="sudo"
else
diff --git a/scripts/mksystem.sh b/scripts/mksystem.sh
index e425e49..933cb6c 100755
--- a/scripts/mksystem.sh
+++ b/scripts/mksystem.sh
@@ -36,7 +36,7 @@ SUDOCMD=""

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo) ]]
+ if [[ -x $(which sudo > /dev/null) ]]
then
SUDOCMD="sudo"
else



  • [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (b1505fa9938c3accde1bc83421988203c2d08b89), Justin Boffemmyer, 10/14/2008

Archive powered by MHonArc 2.6.24.

Top of Page