1
0

Fix find regex, no need to use tac, the results are ordered correctly

This commit is contained in:
Kyle M Hall 2019-12-18 13:39:01 -05:00
parent 4e03a4d84c
commit ca3b37caa4

View File

@ -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