mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 20:46:41 +02:00
When installing yash-binsh but yash is not installed the previous binsh may be removed early leaving yash.post-install without a shell to run. Using the shell itself also resolves a recursive dependency between yash and yash-binsh. Additional dependency on busybox is needed when creating a rootfs to ensure the 'add-shell' command is actually available when running the yash.post-install script.
14 lines
239 B
Text
14 lines
239 B
Text
#!/usr/bin/yash
|
|
|
|
ver_old=$2
|
|
|
|
if [ "$(apk version -t "$ver_old" '2.53-r1')" = '<' ]; then
|
|
cat >&2 <<-EOF
|
|
*
|
|
* yash no longer depends on yash-completion. To keep using command completion,
|
|
* run: apk add yash-completion
|
|
*
|
|
EOF
|
|
fi
|
|
|
|
exit 0
|