aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/single.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/single.sh b/scripts/single.sh
index c8a04836..a0f2c571 100755
--- a/scripts/single.sh
+++ b/scripts/single.sh
@@ -41,6 +41,7 @@ do
echo "# CONFIG_TOYBOX is not set" >> "$KCONFIG_CONFIG" &&
grep "CONFIG_TOYBOX_" .config >> "$KCONFIG_CONFIG" &&
- rm -f "$PREFIX/$i" &&
- OUTNAME="$PREFIX/$i" scripts/make.sh || exit 1
+ export OUTNAME="${PREFIX:+/$PREFIX}$i"
+ rm -f "$OUTNAME" &&
+ scripts/make.sh || exit 1
done