Fix find regex, no need to use tac, the results are ordered correctly
This commit is contained in:
parent
4e03a4d84c
commit
ca3b37caa4
@ -11,8 +11,7 @@ mkdir dist
|
|||||||
cp -r Koha dist/.
|
cp -r Koha dist/.
|
||||||
cd dist
|
cd dist
|
||||||
|
|
||||||
PLUGIN_MODULE=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*\.pm$' | tac | sed '1q;d')
|
PLUGIN_MODULE=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*\.pm$' | sed '1q;d')
|
||||||
echo "FIND: $(find . -regex '\./Koha/Plugin/.*[A-Za-z]*\.pm$' | tac )"
|
|
||||||
|
|
||||||
sed -i -e "s/{VERSION}/${PLUGIN_VERSION}/g" ${PLUGIN_MODULE}
|
sed -i -e "s/{VERSION}/${PLUGIN_VERSION}/g" ${PLUGIN_MODULE}
|
||||||
sed -i -e "s/1900-01-01/${TODAY_ISO}/g" $PLUGIN_MODULE
|
sed -i -e "s/1900-01-01/${TODAY_ISO}/g" $PLUGIN_MODULE
|
||||||
|
Loading…
Reference in New Issue
Block a user