Server IP : 192.168.23.10  /  Your IP : 216.73.216.247
Web Server : Apache
System : Linux echo.premieradvertising.com 5.14.0-362.8.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 7 14:54:22 EST 2023 x86_64
User : rrrallyteam ( 1049)
PHP Version : 8.1.32
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /var/../usr/include/../share/postgresql-setup/../dpkg/sh/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //var/../usr/include/../share/postgresql-setup/../dpkg/sh/dpkg-error.sh
#
# Copyright © 2010 Raphaël Hertzog <hertzog@debian.org>
# Copyright © 2011-2015 Guillem Jover <guillem@debian.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
#
# shellcheck shell=sh

# This shell library (since dpkg 1.20.1) provides reporting support.
#
# Symbols starting with «_dpkg_» are considered private and should not
# be used outside this shell library.

# Set a default program name (since 1.22.12).
: "${PROGNAME:=$(basename "$0")}"

# Standard ANSI colors and attributes.
COLOR_NORMAL=''
COLOR_RESET=''
COLOR_BOLD=''
COLOR_BLACK=''
COLOR_RED=''
COLOR_GREEN=''
COLOR_YELLOW=''
COLOR_BLUE=''
COLOR_MAGENTA=''
COLOR_CYAN=''
COLOR_WHITE=''
COLOR_BOLD_BLACK=''
COLOR_BOLD_RED=''
COLOR_BOLD_GREEN=''
COLOR_BOLD_YELLOW=''
COLOR_BOLD_BLUE=''
COLOR_BOLD_MAGENTA=''
COLOR_BOLD_CYAN=''
COLOR_BOLD_WHITE=''

: "${DPKG_COLORS=auto}"

case "$DPKG_COLORS" in
auto)
  if [ -t 1 ]; then
    _dpkg_use_colors=yes
  else
    _dpkg_use_colors=no
  fi
  ;;
always)
  _dpkg_use_colors=yes
  ;;
*)
  _dpkg_use_colors=no
  ;;
esac

if [ $_dpkg_use_colors = yes ]; then
  _dpkg_color_clear="$COLOR_RESET"
  _dpkg_color_prog="$COLOR_BOLD"
  _dpkg_color_hint="$COLOR_BOLD_BLUE"
  _dpkg_color_info="$COLOR_GREEN"
  _dpkg_color_notice="$COLOR_YELLOW"
  _dpkg_color_warn="$COLOR_BOLD_YELLOW"
  _dpkg_color_error="$COLOR_BOLD_RED"
else
  _dpkg_color_clear=""
fi
_dpkg_fmt_prog="$_dpkg_color_prog$PROGNAME$_dpkg_color_clear"

# This function is deprecated and kept only for backwards compatibility.
# Supported since dpkg 1.20.1.
# Deprecated since dpkg 1.22.12.
setup_colors()
{
  :
}

# Supported since dpkg 1.20.1.
debug() {
  if [ -n "$DPKG_DEBUG" ]; then
    echo "$_dpkg_fmt_prog: debug: $*" >&2
  fi
}

# Supported since dpkg 1.20.1.
error() {
  echo "$_dpkg_fmt_prog: ${_dpkg_color_error}error${_dpkg_color_clear}: $*" >&2
  exit 1
}

# Supported since dpkg 1.20.1.
warning() {
  echo "$_dpkg_fmt_prog: ${_dpkg_color_warn}warning${_dpkg_color_clear}: $*" >&2
}

# Supported since dpkg 1.22.14.
notice() {
  echo "$_dpkg_fmt_prog: ${_dpkg_color_notice}notice${_dpkg_color_clear}: $*"
}

# Supported since dpkg 1.22.14.
info() {
  echo "$_dpkg_fmt_prog: ${_dpkg_color_info}info${_dpkg_color_clear}: $*"
}

# Supported since dpkg 1.22.14.
hint() {
  echo "$_dpkg_fmt_prog: ${_dpkg_color_hint}hint${_dpkg_color_clear}: $*"
}

# Supported since dpkg 1.20.1.
badusage() {
  echo "$_dpkg_fmt_prog: ${_dpkg_color_error}error${_dpkg_color_clear}: $1" >&2
  echo >&2
  echo "Use '$PROGNAME --help' for program usage information." >&2
  exit 1
}