replace STEP by main
This commit is contained in:
parent
a92a6a8738
commit
d4e0270e00
|
@ -90,10 +90,15 @@ debmaker_run(){
|
||||||
[ -f cache/${APP} ] || zdebmaker_createAppOS
|
[ -f cache/${APP} ] || zdebmaker_createAppOS
|
||||||
zdebmaker_inject
|
zdebmaker_inject
|
||||||
debmaker_mount_proc_sys cache/${APP} ${MOUNT_PATH}/${APP}/
|
debmaker_mount_proc_sys cache/${APP} ${MOUNT_PATH}/${APP}/
|
||||||
|
if [ "$STEP" == "" ]
|
||||||
|
then
|
||||||
|
sudo chroot ${MOUNT_PATH}/${APP}/ /tmp/src/exec_in_chroot.sh main
|
||||||
|
else
|
||||||
for CURRENT_STEP in ${STEP}
|
for CURRENT_STEP in ${STEP}
|
||||||
do
|
do
|
||||||
sudo chroot ${MOUNT_PATH}/${APP}/ /tmp/src/exec_in_chroot.sh ${CURRENT_STEP}
|
sudo chroot ${MOUNT_PATH}/${APP}/ /tmp/src/exec_in_chroot.sh ${CURRENT_STEP}
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
rm -fr dist/${APP}*
|
rm -fr dist/${APP}*
|
||||||
find ${MOUNT_PATH}/${APP}/tmp/dist/ -name *.deb -exec cp -v {} dist/ \;
|
find ${MOUNT_PATH}/${APP}/tmp/dist/ -name *.deb -exec cp -v {} dist/ \;
|
||||||
debmaker_umount_proc_sys ${MOUNT_PATH}/${APP}/
|
debmaker_umount_proc_sys ${MOUNT_PATH}/${APP}/
|
||||||
|
|
Loading…
Reference in New Issue