From: cajus Date: Wed, 4 Jun 2008 07:24:51 +0000 (+0000) Subject: Removed more bashisms X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c5017beabedee4b867d57e2e73f20e11dabc1e74;p=gosa.git Removed more bashisms git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11190 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/contrib/make-gosa-package b/gosa-core/contrib/make-gosa-package index 6be6af3a6..f80e32588 100755 --- a/gosa-core/contrib/make-gosa-package +++ b/gosa-core/contrib/make-gosa-package @@ -44,7 +44,7 @@ usage() { exit 1 } -if ! which dh-make-gosa &> /dev/null; then +if ! which dh-make-gosa >/dev/null; then echo "Error: cannot find dh-make-gosa binary in path!"; exit 1 fi @@ -163,7 +163,7 @@ for plugin in $MAKE_PLUGINS; do done for dir in $GOSA_DIR $GOSA_SI_DIR $GOSA_PLUGIN_DIRS; do echo "Adapting version in $dir" - (cd "$dir"; echo | debchange -v "${GOSA_VER}-1${TARGET_RELEASE}1" -D "$TARGET_RELEASE" "$RELEASE_REASON" &> /dev/null) + (cd "$dir"; echo | debchange -v "${GOSA_VER}-1${TARGET_RELEASE}1" -D "$TARGET_RELEASE" "$RELEASE_REASON" >/dev/null 2>&1) [ -d $dir/debian/patches ] || continue echo "Creating patch list for $dir" ls -1 $dir/debian/patches | grep -v 00list | sed 's%^.*/%%g' > $dir/debian/patches/00list diff --git a/gosa-core/dh-make-gosa b/gosa-core/dh-make-gosa index ecead6e0f..e96b1e530 100755 --- a/gosa-core/dh-make-gosa +++ b/gosa-core/dh-make-gosa @@ -124,7 +124,7 @@ elif [ -f "$file" ]; then # Untar mkdir -p "$TMPDIR" - tar --extract --directory "$TMPDIR" -fz "$file" &> /dev/null + tar --extract --directory "$TMPDIR" -fz "$file" >/dev/null 2>&1 if [ $? -ne 0 ]; then echo "Error: cannot extract plugin file - invalid file format" >&2 exit 5 @@ -158,13 +158,11 @@ echo read -s -n 1 -p "Do you want to continue? (y/n)" ans; echo [ "$ans" != "y" ] && exit 0 -pushd . &> /dev/null - cd "$BUILD_PATH" # Use gosa-plugin skelleton echo "Calling dh_make..." -echo | dh_make -e "$PL_MAIL" -c gpl -s -n -f gosa-plugin-${PL_NAME}-${PL_VERSION}.tar.gz &> /dev/null +echo | dh_make -e "$PL_MAIL" -c gpl -s -n -f gosa-plugin-${PL_NAME}-${PL_VERSION}.tar.gz >/dev/null 2>&1 if [ $? -ne 0 ]; then echo "Failed to call dh_make - aborting!" exit 1 @@ -345,9 +343,7 @@ done\ done # Remove examples -rm debian/*ex debian/*EX &> /dev/null - -popd &> /dev/null +rm debian/*ex debian/*EX >/dev/null 2>&1 echo "Done."