fix missing patch source path

This commit is contained in:
aliriza committed 2022-11-16 09:50:29 +00:00
1 parent 5ecc1ed75a
commit b1f5723f7e
4 files changed
+12 -10

No files matched your search

+3 -3
View File
@@ -9,12 +9,12 @@ move_source(){
find -type f | grep ympbuild | sort -V | while read line ; do
name=$(basename $(dirname $line))
path=$(realpath $(dirname $line))
if ! find ./output/ -type f | grep "${name}_" | grep "source.ymp$" 2>/dev/null ; then
if ! find ./output/ -type f | grep "${name}_" | grep "source.ymp$" &>/dev/null ; then
echo -e "\033[33;1m=>> SOURCE BUILD START:\033[;0m $line"
ymp --sandbox --shared="$path" build "$path" --verbose --no-binary --ignore-dependency --use=all --allow-oem
ymp --sandbox --shared="$path" build "$path" --no-binary --ignore-dependency --use=all --allow-oem
move_source
echo -e "\033[33;1m<<= SOURCE BUILD DONE:\033[;0m $line"
fi
done
ymp index output --allow-oem --verbose --move --name="main"
ymp index output --allow-oem --move --name="main"