aports/main/execline/execline.pre-deinstall
Laurent Bercot 0fa1e610b0 main/execline: replace usrmerge APKBUILD hack with post-install scripts
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2024-10-10 11:19:43 +02:00

8 lines
295 B
Bash

#!/bin/sh -e
# Remove a potential /bin/execlineb symlink if the machine isn't usrmerged
if target=$(readlink /bin) && test $target = /usr/bin ; then : ; else
if target=$(readlink /bin/execlineb) && test $(realpath $target) = $(realpath /usr/bin/execlineb) ; then
rm -f /bin/execlineb
fi
fi