Skip to content

Commit

Permalink
Fixed indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frenzie committed Oct 13, 2014
1 parent ab5597f commit af3cd56
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions readablepdf
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ TESSERACT_PARAMS=
# Inspired by http://wiki.bash-hackers.org/howto/conffile
# Both system-wide and per user conf; something along these lines.
load_config() {
# Paranoid whitelist.
unknown=$(< "$1" grep -Evi "^(#.*|[A-Z_]*='[a-z0-9 +-]*')$")
if [ -n "${unknown}" ]; then
echo "Error in config file. Disallowed lines:"
echo "${unknown}"
exit 1
fi
source "$1"
# Paranoid whitelist.
unknown=$(< "$1" grep -Evi "^(#.*|[A-Z_]*='[a-z0-9 +-]*')$")
if [ -n "${unknown}" ]; then
echo "Error in config file. Disallowed lines:"
echo "${unknown}"
exit 1
fi
source "$1"
}

c_files=( "/etc/readablepdf.cfg" "${HOME}/.config/readablepdf.conf" )
Expand Down

0 comments on commit af3cd56

Please sign in to comment.