Fixed a bug with exiting without passing arguments
This commit is contained in:
6
env.sh
6
env.sh
@@ -9,12 +9,6 @@ TOOLCHAIN=arm-uclinuxfdpiceabi
|
||||
# Пример вызова: ./env.sh /opt/toolchains/arm/bin
|
||||
TOOLCHAIN_PATH="${1:-${TOP}/${TARGET}/bin}"
|
||||
|
||||
# Проверка, что путь существует
|
||||
if [ ! -d "$TOOLCHAIN_PATH" ]; then
|
||||
echo "Ошибка: директория с тулчейном не найдена: $TOOLCHAIN_PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SYSROOT="${TOOLCHAIN_ROOT}/sysroot"
|
||||
PREFIX="${SYSROOT}/usr"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user