Skip to content

Commit 7bdd196

Browse files
feat: use custom folder for functions and debootstrap scripts to control distros sybolic links
1 parent 0647dfa commit 7bdd196

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugins/envsetup

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,12 @@ do_build() {
287287
export chroot_dir
288288
chroot_dir=$target_dir
289289

290+
if [[ ! $DEBOOTSTRAP_DIR ]]; then
291+
export DEBOOTSTRAP_DIR="$ROOT_DIR/core/debootstrap-scripts"
292+
fi
293+
290294
if [ -n "$SUITE" ]; then
291-
supported_suites="$(ls "${ROOT_DIR}"/core/debootstrap/scripts)"
295+
supported_suites="$(ls $DEBOOTSTRAP_DIR/scripts)"
292296
suite_found=false
293297
for sts in $supported_suites; do
294298
if [ "$sts" == "$SUITE" ]; then
@@ -322,10 +326,6 @@ do_build() {
322326
_debootstrap=$(which debootstrap)
323327
fi
324328

325-
if ! $DEBOOTSTRAP_DIR; then
326-
DEBOOTSTRAP_DIR="$ROOT_DIR/core/debootstrap"
327-
fi
328-
329329
if [ "$BUILD_PLATFORM" == "termux" ]; then
330330
dpkg_depends_on debootstrap
331331
_debootstrap="$(which debootstrap)"

0 commit comments

Comments
 (0)