aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSertonix <sertonix@posteo.net>2024-01-09 13:44:17 +0100
committerSören Tempel <soeren+alpine@soeren-tempel.net>2024-01-16 17:10:30 +0000
commit4cf61dc5e0a3a56849da8a8e2a170ecc86964227 (patch)
treea74cece7dfe1e5a5c402f2bf5c8e89c298694436
parent8168e5e0995518d04c58c3251ea0119b9fba9859 (diff)
main/busybox: remove 'cd /' from scripts
*.{pre,post}-{install,upgrade,deinstall} scripts are run at the root directory.
-rw-r--r--main/busybox/APKBUILD2
-rw-r--r--main/busybox/busybox-extras.pre-deinstall1
-rw-r--r--main/busybox/busybox.post-upgrade1
3 files changed, 1 insertions, 3 deletions
diff --git a/main/busybox/APKBUILD b/main/busybox/APKBUILD
index b7a2607ae0a..824021ad02e 100644
--- a/main/busybox/APKBUILD
+++ b/main/busybox/APKBUILD
@@ -5,7 +5,7 @@
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=busybox
pkgver=1.36.1
-pkgrel=18
+pkgrel=19
pkgdesc="Size optimized toolbox of many common UNIX utilities"
url="https://busybox.net/"
arch="all"
diff --git a/main/busybox/busybox-extras.pre-deinstall b/main/busybox/busybox-extras.pre-deinstall
index 5ae91ccbc22..2634c6a31cb 100644
--- a/main/busybox/busybox-extras.pre-deinstall
+++ b/main/busybox/busybox-extras.pre-deinstall
@@ -1,7 +1,6 @@
#!/bin/sh
# Remove all symlinks to busybox-extras
-cd /
for link in $(busybox-extras --list-full); do
if [ -L "$link" ] && [ "$(readlink $link)" = "/bin/busybox-extras" ]; then
rm "$link"
diff --git a/main/busybox/busybox.post-upgrade b/main/busybox/busybox.post-upgrade
index 5359d2a7e6e..66fd1c49325 100644
--- a/main/busybox/busybox.post-upgrade
+++ b/main/busybox/busybox.post-upgrade
@@ -14,7 +14,6 @@
# - use sed to strip the leading and training ' chars
# - finally pass the list to rm for removing the symlinks that points to
# busybox but does not exist in the `busybox --list-all` list
-cd /
( find bin sbin usr/bin usr/sbin -maxdepth 1 -type l; busybox --list-all) \
| sort | uniq -u \
| xargs -r stat -c "%N" 2>/dev/null \