Skip to content

Commit c7f63bf

Browse files
authored
Set DEBOOTSTRAP_DIR for termux
1 parent 3edf630 commit c7f63bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/envsetup

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,11 @@ do_build() {
288288
chroot_dir=$target_dir
289289

290290
if [[ ! $DEBOOTSTRAP_DIR ]]; then
291-
if [ "$BUILD_PLATFORM" != "termux" ]; then
291+
if [ "$BUILD_PLATFORM" == "termux" ]; then
292+
# use default debootstrap directory in termux
293+
export DEBOOTSTRAP_DIR="$PREFIX/share/debootstrap"
294+
else
295+
# use custom debootstrap directory in linux
292296
export DEBOOTSTRAP_DIR="$ROOT_DIR/core/debootstrap-scripts"
293297
fi
294298
fi

0 commit comments

Comments
 (0)