From cd2ace1f30977e83f4a94896e0053c428d23df12 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Tue, 3 Jun 2025 13:55:05 +0200 Subject: [PATCH] Handle the case in which DYLD_SOMETHING is empty (#933) --- bits | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bits b/bits index d33e8466..6da99fee 100755 --- a/bits +++ b/bits @@ -141,7 +141,8 @@ function existModules() { } function stripDyld() { - echo unset $( (typeset | grep ^DYLD | cut -d= -f1 | grep '_modshare$' | xargs echo ) 2> /dev/null; echo ';' ) + TO_STRIP=$( (typeset | grep ^DYLD | cut -d= -f1 | grep '_modshare$' | xargs echo ) 2> /dev/null ) + [ ! "X$TO_STRIP" = X ] && echo unset $TO_STRIP && echo ';' } function readBitsRc() {