Commit 20091a18 authored by Luiza Wille's avatar Luiza Wille

Issue#62: also changed the variables called 'temp' to better names

Signed-off-by: Luiza Wille's avatarLuiza Wille <lmwc14@inf.ufpr.br>
parent 5e044e92
......@@ -44,9 +44,9 @@ fi
# First, get next month (201606).
nxtMonth=$(date +%Y%m -d "$(date +${1}${2}15) next month")
# Append day 01 (20160601).
temp=$(date +%Y%m%d -d "${nxtMonth}01")
tempDate=$(date +%Y%m%d -d "${nxtMonth}01")
# Remove 1 day: 20160531, get only day: 31.
day=$(date -d "$temp - 1 day" "+%d")
day=$(date -d "$tempDate - 1 day" "+%d")
ym=$1-$2
path="./tmp_$ym"
......
......@@ -41,11 +41,11 @@ fi
# Getting the Last day of this month (Using date 2016-05-15 as example):
# First, get next month (201606).
aux=$(date +%Y%m -d "$(date +${1}${2}15) next month")
nxtMonth=$(date +%Y%m -d "$(date +${1}${2}15) next month")
# Append day 01 (20160601).
temp=$(date -d "${aux}01")
tempDate=$(date -d "${nxtMonth}01")
# Remove 1 day: 20160531, get only day: 31.
day=$(date -d "$temp - 1 day" "+%d")
day=$(date -d "$tempDate - 1 day" "+%d")
ym=$1-$2
path="./tmp_$ym"
......
......@@ -70,8 +70,8 @@ do
# Step 3:
# Start processing
aux=$( echo "${filter[$key]}" | sed 's/ /\\ /g' )
./merge_files_es.py $path/config-${1}-${2}.json "$aux" "${columnName}"
strReplacement=$( echo "${filter[$key]}" | sed 's/ /\\ /g' )
./merge_files_es.py $path/config-${1}-${2}.json "$strReplacement" "${columnName}"
rm $path/${1}${2}${day}_Cadastro_Unique.csv
# Step 4:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment