Skip to content

Commit 29c0eb0

Browse files
committed
Fix variable errors
Sorry i didn't check it correctly :(
1 parent e45a567 commit 29c0eb0

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
@@ -297,11 +297,9 @@ do_build() {
297297
esac
298298
if [ "$termux_arch" != "$arch" ]; then
299299
lshout "Skipping cross architecture building for termux"
300-
termux_build=false
301300
return 0
302301
else
303302
lshout "Building on Termux"
304-
termux_build=true
305303
fi
306304
fi
307305

@@ -472,9 +470,11 @@ do_compress() {
472470
export chroot_dir=$1
473471
TARGET_FILE="$(basename ${chroot_dir})"
474472

475-
if [ "$termux_build" == "false" ]; then
476-
lshout "skip compressing $chroot_dir "
477-
return 0
473+
if [ "$FS_COOK_PLATFORM" == "termux" ]; then
474+
if [ ! -d "$chroot_dir" ]; then
475+
lshout "skip compressing $chroot_dir "
476+
return 0
477+
fi
478478
fi
479479

480480
if [ -n "$OVERRIDER_COMPRESSION_TYPE" ]; then

0 commit comments

Comments
 (0)