Skip to content

Commit

Permalink
Update logic used to check for native build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 22, 2024
1 parent a4af4be commit c6445bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ else
fi

native_build=false
which debos && native_build=true
[ -e "$(which debos)" ] && native_build=true

os_dir="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.."
timestamp=$(date '+%Y-%m-%d_%H_%M')
Expand Down Expand Up @@ -102,6 +102,7 @@ for platform in ${platforms}; do
fi

if [ "${native_build}" == "true" ]; then
echo "Native Build: ${platform}"
cd "${debos_dir}" || exit 2
debos "${debos_args[@]}" > "${os_dir}/${platform}.log" 2>&1 &
else
Expand Down

0 comments on commit c6445bb

Please sign in to comment.