Skip to content

Commit

Permalink
Set DEBOOTSTRAP_DIR for termux
Browse files Browse the repository at this point in the history
  • Loading branch information
23xvx authored Apr 9, 2024
1 parent 3edf630 commit c7f63bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/envsetup
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ do_build() {
chroot_dir=$target_dir

if [[ ! $DEBOOTSTRAP_DIR ]]; then
if [ "$BUILD_PLATFORM" != "termux" ]; then
if [ "$BUILD_PLATFORM" == "termux" ]; then
# use default debootstrap directory in termux
export DEBOOTSTRAP_DIR="$PREFIX/share/debootstrap"
else
# use custom debootstrap directory in linux
export DEBOOTSTRAP_DIR="$ROOT_DIR/core/debootstrap-scripts"
fi
fi
Expand Down

0 comments on commit c7f63bf

Please sign in to comment.