Ahem: work when PREFIX hasn't got trailing / OR when PREFIX is blank.

This commit is contained in:
Rob Landley 2019-11-20 23:27:43 -06:00
parent 54a2d045a1
commit 1f14e20a24

View File

@ -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