mirror of
				https://github.com/kevinveenbirkenbach/bill-manager.git
				synced 2025-11-04 02:37:55 +00:00 
			
		
		
		
	Solved update bug
This commit is contained in:
		@@ -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..."
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user