Code formating

This commit is contained in:
Llewellyn van der Merwe 2021-06-01 07:54:00 +02:00
parent d82aa6d4db
commit 91c09b5d1b
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C
1 changed files with 32 additions and 34 deletions

8
run.sh
View File

@ -25,8 +25,7 @@ function main() {
exit 1
fi
# now get the mapper data
while IFS=$'\t' read -r -a row
do
while IFS=$'\t' read -r -a row; do
[[ "$row" =~ ^#.*$ ]] && continue
# set the url
URL_MAIN_LANG="${STREAM_ENDPOINT}&${URL_VERSION_KEY}=${row[0]}"
@ -60,8 +59,7 @@ function main() {
# check if we should update the repo
if (("$PUSH" == 1)); then
# we first check if there are changes
if [[ -z $(git status --porcelain) ]];
then
if [[ -z $(git status --porcelain) ]]; then
echo "Nothing to commit here"
else
# make sure all new files are added and others removed where needed
@ -108,7 +106,7 @@ function readXML () {
return $ret
}
function getElement() {
if [[ $TAG_NAME = "extension" ]] ; then
if [[ $TAG_NAME == "extension" ]]; then
eval local $ATTRIBUTES
echo "$element"
else