mirror of
https://github.com/kevinveenbirkenbach/bill-manager.git
synced 2024-11-25 02:41:03 +01:00
Solved update bug
This commit is contained in:
parent
4b0d6ed9ea
commit
59fe1c478f
@ -3,6 +3,7 @@
|
||||
# @param $1 Working directory
|
||||
# @param $2 language
|
||||
# @param $3 mode (update,initialize)
|
||||
# shellcheck disable=SC2144 # Deactivate wrong error message
|
||||
# sudo pacman -Syyu tesseract-data-deu tesseract-data-en tesseract
|
||||
if [ -z "$2" ]
|
||||
then
|
||||
@ -33,7 +34,7 @@ else
|
||||
fi
|
||||
fi
|
||||
for origin_file in "$ORIGIN_FOLDER"*.*; do
|
||||
if [ "$MODE" = "update" ] && [ "$(test -f "$OUTPUT_FOLDER$(basename "$origin_file")"*)" ] || [ "$MODE" = "initialize" ]; then
|
||||
if [ "$MODE" = "update" ] && [ ! -f "$OUTPUT_FOLDER$(basename "$origin_file")"* ] || [ "$MODE" = "initialize" ]; then
|
||||
if [ "$(head -c 4 "$origin_file")" = "%PDF" ]; then
|
||||
tmp_file="$TMP_FOLDER$(basename "$origin_file")"
|
||||
echo "Generating $tmp_file..."
|
||||
|
Loading…
Reference in New Issue
Block a user