A. Wilcox f1faef7868 abuild: ensure a package has deps before printing them
After the first dep is printed, `shift` is called to avoid the special
case where the first dep cannot have a comma prepended.  However,
if there are no deps for a package (seen early on in the aports main
repo in acf-jquery), $# is 0.  POSIX specifies that `shift` has two
options when the shift operand (1) is greater than $#:

- if non-interactive, it can exit the shell
- if it does not exit the shell, it must return a non-zero exit code

Since we run the shell with -e, the second case folds in to the first.

BusyBox ash does not implement this behaviour, but bash does when called
as /bin/sh or when the `posix` shopt is set.
2017-09-19 12:02:57 +00:00
2017-09-19 12:02:57 +00:00
2017-06-27 14:52:50 +03:00
2017-06-23 11:27:41 +03:00
2016-05-20 10:19:08 +02:00
2017-06-27 14:52:50 +03:00
2017-09-19 11:59:18 +00:00
2016-08-23 00:09:06 +02:00
2016-08-12 15:26:06 +02:00
2016-08-12 15:26:06 +02:00
2017-09-19 11:09:44 +00:00
2017-06-23 11:27:41 +03:00
2016-06-13 12:34:05 +00:00
Description
Build script to build Alpine packages (forked to remove busybox dependency)
1.2 MiB
Languages
Shell 61.4%
Roff 12%
C 10.4%
Perl 9.4%
Ruby 4.9%
Other 1.9%