[FIX] Ignores empty or commented lines in selected_oca_modules
This commit is contained in:
parent
4939cabe2b
commit
4fdea3e4be
@ -78,9 +78,9 @@ pt_community ()
|
||||
OPTIONS="--directory=$DEST --strip=1"
|
||||
patch $OPTIONS < patches/20210821_base-location_no-zip-from-city.patch
|
||||
|
||||
# DEST=$DESTDIR/community/auth_oauth_multi_token/
|
||||
# OPTIONS="--directory=$DEST --strip=1"
|
||||
# patch $OPTIONS < patches/20210420_auth-oauth-multi-token_error-in-login.patch
|
||||
DEST=$DESTDIR/community/auth_oauth_multi_token/
|
||||
OPTIONS="--directory=$DEST --strip=1"
|
||||
patch $OPTIONS < patches/20210420_auth-oauth-multi-token_error-in-login.patch
|
||||
}
|
||||
|
||||
pt_all ()
|
||||
|
||||
@ -38,15 +38,16 @@ cp_community ()
|
||||
{
|
||||
REPO="Modules by Odoo Community Association"
|
||||
SRC=./community/oca
|
||||
DEST=$DESTDIR/community/
|
||||
DEST=${DESTDIR}/community/
|
||||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
||||
echo "Install $REPO into production directory structure"
|
||||
echo "Install ${REPO} into production directory structure"
|
||||
echo "(selected modules)"
|
||||
echo " …from $SRC to $DEST"
|
||||
echo " …from ${SRC} to ${DEST}"
|
||||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
||||
while read -r i || [ -n "$i" ]
|
||||
while read -r line
|
||||
do
|
||||
rsync $OPTIONS "$SRC/${i%/}" $DEST
|
||||
[[ "$line" =~ ^# || "$line" =~ ^$ ]] && continue
|
||||
rsync ${OPTIONS} "${SRC}/${line%/}" ${DEST}
|
||||
done < selected_oca_modules.txt
|
||||
}
|
||||
|
||||
|
||||
@ -17,6 +17,7 @@ reporting-engine/report_xlsx/
|
||||
reporting-engine/report_xlsx_helper/
|
||||
server-auth/auth_oauth_multi_token/
|
||||
server-backend/base_user_role/
|
||||
server-tools/sql_request_abstract/
|
||||
server-ux/date_range/
|
||||
web/web_m2x_options/
|
||||
web/web_responsive/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user