@@ -56,10 +56,6 @@ if [ "$(id -u)" != "0" ]; then
5656 fi
5757fi
5858
59- if [ -z $ENABLE_USER_SETUP ]; then
60- export ENABLE_USER_SETUP=false
61- fi
62-
6359ROOT_DIR=" $( git rev-parse --show-toplevel) "
6460
6561trim_quotes () {
@@ -220,8 +216,11 @@ see_for_directory() {
220216
221217no_to_directory () {
222218 dir=" $1 "
219+ if [ -z $NO_DIR_CHECK_OVERRIDE ]; then
220+ export NO_DIR_CHECK_OVERRIDE=false
221+ fi
223222 if [ -d " $dir " ]; then
224- if [ " $NO_DIR_CHECK_OVERRIDE " == " true " ] ; then
223+ if $NO_DIR_CHECK_OVERRIDE ; then
225224 return 0
226225 else
227226 die " directory exits: $dir "
@@ -248,7 +247,6 @@ includes_packages() {
248247 export includes
249248 x=0
250249 for item in $includes ; do
251- # include_final="$item"
252250 (( x = x + 1 ))
253251 done
254252 shout " $x includes processed "
@@ -261,13 +259,13 @@ do_build() {
261259
262260 local NO_COMPRESSION
263261
264- if [ -z " $DISABLE_USER_SETUP " ]; then
265- export DISABLE_USER_SETUP =false
262+ if [ -z $ENABLE_USER_SETUP ]; then
263+ export ENABLE_USER_SETUP =false
266264 fi
267265
268266 foreign_arch " $arch "
269267
270- # Disable cross architecture building in Termux
268+ # disable cross architecture building in Termux
271269 if [ " $BUILD_PLATFORM " == " termux" ]; then
272270 case $worker_arch in
273271 aarch64) termux_arch=" arm64" ;;
@@ -362,7 +360,7 @@ do_build() {
362360 fi
363361 fi
364362
365- if [ " $ENABLE_USER_SETUP " == " true " ] ; then
363+ if $ENABLE_USER_SETUP ; then
366364 setup_user
367365 fi
368366
0 commit comments