From 3e28f611e452b52b21360c56dbf250d242bbb4a5 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 13 Nov 2020 02:16:51 -0600 Subject: Properly install toybox files with $TARGET suffixes. --- scripts/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index cac8b237..648a2411 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -43,7 +43,7 @@ if [ -z "$UNINSTALL" ] then mkdir -p "${PREFIX}/${LONG_PATH}" && rm -f "${PREFIX}/${LONG_PATH}/toybox" && - cp toybox ${PREFIX}/${LONG_PATH} || exit 1 + cp toybox"${TARGET:+-$TARGET}" ${PREFIX}/${LONG_PATH} || exit 1 else rm -f "${PREFIX}/${LONG_PATH}/toybox" 2>/dev/null fi @@ -86,7 +86,7 @@ do # Create link if [ -z "$UNINSTALL" ] then - ln $DO_FORCE $LINK_TYPE ${DOTPATH}toybox $i || EXIT=1 + ln $DO_FORCE $LINK_TYPE ${DOTPATH}"toybox${TARGET:+-$TARGET}" $i || EXIT=1 else rm -f $i || EXIT=1 fi -- cgit v1.2.3