fix all hints of shellcheck.net linter

This commit is contained in:
vv01f 2019-11-15 22:35:44 +01:00
parent 75bf74c44e
commit 316d6821fa
Signed by untrusted user who does not match committer: vv01f
GPG Key ID: 02625A16AC1D1FF6
1 changed files with 8 additions and 5 deletions

View File

@ -1,8 +1,11 @@
#!/usr/bin/env sh
echo "this takes some time depending on the amount of addresses in your lists …"
for file in $(ls *-csv) ; do
out=$(echo ${file}|cut -d- -f1)".geojson"
test -e ${out} && { echo "file exists: "${out}", skipping."; continue; }
echo ./lookup.py ${file}
./lookup.py ${file} 2>/dev/null > ${out}
for file in *-csv ; do
out=$(echo "${file}"|cut -d- -f1)".geojson"
if test -e "${out}" ; do
echo "file exists: ${out}, skipping."
continue
fi
echo ./lookup.py "${file}"
./lookup.py "${file}" 2>/dev/null > "${out}"
done