Don't use set -e in sourced functions, this is the job of the actual executed script.

This commit is contained in:
Daniel Baumann 2008-10-29 09:25:54 +01:00
parent 1c1e7db6c4
commit 37d2fb4b0f
24 changed files with 0 additions and 48 deletions

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Find_files ()
{
(ls "${@}" | grep -qs .) > /dev/null 2>&1

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Check_architecture ()
{
ARCHITECTURES="${@}"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Arguments ()
{
ARGUMENTS="$(getopt --longoptions breakpoints,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options c:huv --shell sh -- "${@}")"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Restore_cache ()
{
DIRECTORY="${1}"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Chroot ()
{
CHROOT="${1}"; shift

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
NO_COLOR=""
UNDERSCORE=""

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
PROGRAM="$(basename ${0})"
VERSION="1.0.1"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Get_conffiles ()
{
if [ -n "${LH_CONFIG}" ]

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Cursor_goto_position ()
{
__LINE="${1}"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Set_defaults ()
{
## config/common

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Echo ()
{
STRING="${1}"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Exit ()
{
if [ "${LH_DEBUG}" = "enabled" ]

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Help ()
{
Echo "%s - %s" "${PROGRAM}" "${DESCRIPTION}"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
# gettext domain (.mo file name)
export TEXTDOMAIN=live-helper
# locale dir for gettext codes

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Check_lockfile ()
{
FILE="${1}"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Losetup ()
{
DEVICE="${1}"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Check_package ()
{
FILE="${1}"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Expand_packagelist ()
{
_LH_EXPAND_QUEUE="$(basename "${1}")"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
# Debian releases
RELEASE_etch="4.0 r4"
RELEASE_lenny="5.0 r0"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Check_stagefile ()
{
FILE="${1}"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Check_templates ()
{
PACKAGE="${1}"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Usage ()
{
Echo "%s - %s" "${PROGRAM}" "${DESCRIPTION}"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Version ()
{
Echo "%s, version %s" "${PROGRAM}" "${VERSION}"

View File

@ -7,8 +7,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
Apt ()
{
case "${LH_APT}" in