Skip to content

Commit

Permalink
Fix die function exit code
Browse files Browse the repository at this point in the history
exit() without argument returns the code of the previous command, but
error() is always successful.

Signed-off-by: Vasiliy Stelmachenok <[email protected]>
  • Loading branch information
ventureoo committed Sep 27, 2024
1 parent 0b3b514 commit b8ef12b
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion linux-cachyos-bmq/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER="$pkgbase"
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

_die() { error "$@" ; exit; }
_die() { error "$@" ; exit 1; }

prepare() {
cd "$_srcname"
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER="$pkgbase"
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

_die() { error "$@" ; exit; }
_die() { error "$@" ; exit 1; }

prepare() {
cd "$_srcname"
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-deckify/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER="$pkgbase"
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

_die() { error "$@" ; exit; }
_die() { error "$@" ; exit 1; }

prepare() {
cd "$_srcname"
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-eevdf/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER="$pkgbase"
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

_die() { error "$@" ; exit; }
_die() { error "$@" ; exit 1; }

prepare() {
cd "$_srcname"
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-hardened/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER="$pkgbase"
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

_die() { error "$@" ; exit; }
_die() { error "$@" ; exit 1; }

prepare() {
cd "$_srcname"
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-lts/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER="$pkgbase"
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

_die() { error "$@" ; exit; }
_die() { error "$@" ; exit 1; }

prepare() {
cd "$_srcname"
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-rc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER="$pkgbase"
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

_die() { error "$@" ; exit; }
_die() { error "$@" ; exit 1; }

prepare() {
cd "$_srcname"
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-rt-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER="$pkgbase"
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

_die() { error "$@" ; exit; }
_die() { error "$@" ; exit 1; }

prepare() {
cd "$_srcname"
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-sched-ext/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER="$pkgbase"
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

_die() { error "$@" ; exit; }
_die() { error "$@" ; exit 1; }

prepare() {
cd "$_srcname"
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-server/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER="$pkgbase"
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

_die() { error "$@" ; exit; }
_die() { error "$@" ; exit 1; }

prepare() {
cd "$_srcname"
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER="$pkgbase"
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

_die() { error "$@" ; exit; }
_die() { error "$@" ; exit 1; }

prepare() {
cd "$_srcname"
Expand Down

0 comments on commit b8ef12b

Please sign in to comment.