replace STEP by main

This commit is contained in:
thomas 2022-10-02 22:21:19 +02:00
parent a92a6a8738
commit d4e0270e00
1 changed files with 10 additions and 5 deletions

View File

@ -87,13 +87,18 @@ debmaker_chroot() {
debmaker_run(){
zdebmaker_getDep
[ -f cache/${APP} ] || zdebmaker_createAppOS
[ -f cache/${APP} ] || zdebmaker_createAppOS
zdebmaker_inject
debmaker_mount_proc_sys cache/${APP} ${MOUNT_PATH}/${APP}/
for CURRENT_STEP in ${STEP}
do
sudo chroot ${MOUNT_PATH}/${APP}/ /tmp/src/exec_in_chroot.sh ${CURRENT_STEP}
done
if [ "$STEP" == "" ]
then
sudo chroot ${MOUNT_PATH}/${APP}/ /tmp/src/exec_in_chroot.sh main
else
for CURRENT_STEP in ${STEP}
do
sudo chroot ${MOUNT_PATH}/${APP}/ /tmp/src/exec_in_chroot.sh ${CURRENT_STEP}
done
fi
rm -fr dist/${APP}*
find ${MOUNT_PATH}/${APP}/tmp/dist/ -name *.deb -exec cp -v {} dist/ \;
debmaker_umount_proc_sys ${MOUNT_PATH}/${APP}/