Skip to Content.
Sympa Menu

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

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 (9f48987d636518e731e3a4cd451aaa8677506777)
  • Date: Sun, 28 Dec 2008 13:11:49 -0600

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

scripts/add-sauce.sh | 4 ++--
scripts/cauldronchr.sh | 4 ++--
scripts/cleaniso.sh | 4 ++--
scripts/mkinitrd.sh | 4 ++--
scripts/mkiso.sh | 4 ++--
scripts/mkrelease.sh | 4 ++--
scripts/mksystem.sh | 4 ++--
scripts/purify.sh | 4 ++--
scripts/spellcaster.sh | 6 +++---
9 files changed, 19 insertions(+), 19 deletions(-)

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

scripts/*: fix sudo evocation

The sudo call will now verifiably work.

diff --git a/scripts/add-sauce.sh b/scripts/add-sauce.sh
index edfc35d..e8851eb 100755
--- a/scripts/add-sauce.sh
+++ b/scripts/add-sauce.sh
@@ -51,9 +51,9 @@ SELF="$0"

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo > /dev/null 2>&1) ]]
+ if [[ -x $(which sudo 2> /dev/null) ]]
then
- exec sudo "$SELF $*"
+ exec sudo -H $SELF $*
else
echo "Please enter the root password."
exec su -c "$SELF $*" root
diff --git a/scripts/cauldronchr.sh b/scripts/cauldronchr.sh
index 6cd3634..d08bf35 100755
--- a/scripts/cauldronchr.sh
+++ b/scripts/cauldronchr.sh
@@ -45,9 +45,9 @@ SELF=$0

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo > /dev/null 2>&1) ]]
+ if [[ -x $(which sudo 2> /dev/null) ]]
then
- exec sudo "$SELF $*"
+ exec sudo -H $SELF $*
else
echo "Please enter the root password."
exec su -c "$SELF $*" root
diff --git a/scripts/cleaniso.sh b/scripts/cleaniso.sh
index 9af772b..94f8995 100755
--- a/scripts/cleaniso.sh
+++ b/scripts/cleaniso.sh
@@ -38,9 +38,9 @@ SELF=$0

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo > /dev/null 2>&1) ]]
+ if [[ -x $(which sudo 2> /dev/null) ]]
then
- exec sudo "$SELF $*"
+ exec sudo -H $SELF $*
else
echo "Please enter the root password."
exec su -c "$SELF $*" root
diff --git a/scripts/mkinitrd.sh b/scripts/mkinitrd.sh
index 2137750..02e127e 100755
--- a/scripts/mkinitrd.sh
+++ b/scripts/mkinitrd.sh
@@ -44,9 +44,9 @@ SELF=$0

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo > /dev/null 2>&1) ]]
+ if [[ -x $(which sudo 2> /dev/null) ]]
then
- exec sudo "$SELF $*"
+ exec sudo -H $SELF $*
else
echo "Please enter the root password."
exec su -c "$SELF $*" root
diff --git a/scripts/mkiso.sh b/scripts/mkiso.sh
index ba736fa..2cd2467 100755
--- a/scripts/mkiso.sh
+++ b/scripts/mkiso.sh
@@ -48,9 +48,9 @@ SELF=$0

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo > /dev/null 2>&1) ]]
+ if [[ -x $(which sudo 2> /dev/null) ]]
then
- exec sudo "$SELF $*"
+ exec sudo -H $SELF $*
else
echo "Please enter the root password."
exec su -c "$SELF $*" root
diff --git a/scripts/mkrelease.sh b/scripts/mkrelease.sh
index c47975a..8a9cd2d 100755
--- a/scripts/mkrelease.sh
+++ b/scripts/mkrelease.sh
@@ -46,9 +46,9 @@ SELF=$0

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo > /dev/null 2>&1) ]]
+ if [[ -x $(which sudo 2> /dev/null) ]]
then
- exec sudo "$SELF $*"
+ exec sudo -H $SELF $*
else
echo "Please enter the root password."
exec su -c "$SELF $*" root
diff --git a/scripts/mksystem.sh b/scripts/mksystem.sh
index 6140159..9058875 100755
--- a/scripts/mksystem.sh
+++ b/scripts/mksystem.sh
@@ -35,9 +35,9 @@ SELF=$0

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo > /dev/null 2>&1) ]]
+ if [[ -x $(which sudo 2> /dev/null) ]]
then
- exec sudo "$SELF $*"
+ exec sudo -H $SELF $*
else
echo "Please enter the root password."
exec su -c "$SELF $*" root
diff --git a/scripts/purify.sh b/scripts/purify.sh
index f47e0e0..03a6276 100644
--- a/scripts/purify.sh
+++ b/scripts/purify.sh
@@ -43,9 +43,9 @@ SELF=$0

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo > /dev/null 2>&1) ]]
+ if [[ -x $(which sudo 2> /dev/null) ]]
then
- exec sudo "$SELF $*"
+ exec sudo -H $SELF $*
else
echo "Please enter the root password."
exec su -c "$SELF $*" root
diff --git a/scripts/spellcaster.sh b/scripts/spellcaster.sh
index 01ffc6f..fe619b2 100755
--- a/scripts/spellcaster.sh
+++ b/scripts/spellcaster.sh
@@ -54,9 +54,9 @@ function priv_check() {

if [[ $UID -ne 0 ]]
then
- if [[ -x $(which sudo > /dev/null 2>&1) ]]
+ if [[ -x $(which sudo 2> /dev/null) ]]
then
- exec sudo "$SELF $*"
+ exec sudo -H $SELF $*
else
echo "Please enter the root password."
exec su -c "$SELF $*" root
@@ -233,7 +233,7 @@ function clean_target() {
parse_options $*
shift $?

-priv_check
+priv_check $*

[[ $# -lt 1 ]] && usage
TARGET="${1%/}"



  • [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (9f48987d636518e731e3a4cd451aaa8677506777), Justin Boffemmyer, 12/28/2008

Archive powered by MHonArc 2.6.24.

Top of Page