mirror of
https://github.com/Llewellynvdm/Joomla-XML-Lang-stream.git
synced 2024-12-18 03:24:08 +00:00
Code formating
This commit is contained in:
parent
d82aa6d4db
commit
91c09b5d1b
8
run.sh
8
run.sh
@ -25,8 +25,7 @@ function main() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# now get the mapper data
|
# now get the mapper data
|
||||||
while IFS=$'\t' read -r -a row
|
while IFS=$'\t' read -r -a row; do
|
||||||
do
|
|
||||||
[[ "$row" =~ ^#.*$ ]] && continue
|
[[ "$row" =~ ^#.*$ ]] && continue
|
||||||
# set the url
|
# set the url
|
||||||
URL_MAIN_LANG="${STREAM_ENDPOINT}&${URL_VERSION_KEY}=${row[0]}"
|
URL_MAIN_LANG="${STREAM_ENDPOINT}&${URL_VERSION_KEY}=${row[0]}"
|
||||||
@ -60,8 +59,7 @@ function main() {
|
|||||||
# check if we should update the repo
|
# check if we should update the repo
|
||||||
if (("$PUSH" == 1)); then
|
if (("$PUSH" == 1)); then
|
||||||
# we first check if there are changes
|
# we first check if there are changes
|
||||||
if [[ -z $(git status --porcelain) ]];
|
if [[ -z $(git status --porcelain) ]]; then
|
||||||
then
|
|
||||||
echo "Nothing to commit here"
|
echo "Nothing to commit here"
|
||||||
else
|
else
|
||||||
# make sure all new files are added and others removed where needed
|
# make sure all new files are added and others removed where needed
|
||||||
@ -108,7 +106,7 @@ function readXML () {
|
|||||||
return $ret
|
return $ret
|
||||||
}
|
}
|
||||||
function getElement() {
|
function getElement() {
|
||||||
if [[ $TAG_NAME = "extension" ]] ; then
|
if [[ $TAG_NAME == "extension" ]]; then
|
||||||
eval local $ATTRIBUTES
|
eval local $ATTRIBUTES
|
||||||
echo "$element"
|
echo "$element"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user