mirror of
				https://github.com/kevinveenbirkenbach/bill-manager.git
				synced 2025-11-04 10:47:59 +00:00 
			
		
		
		
	Solved update bug
This commit is contained in:
		@@ -3,6 +3,7 @@
 | 
				
			|||||||
# @param $1 Working directory
 | 
					# @param $1 Working directory
 | 
				
			||||||
# @param $2 language
 | 
					# @param $2 language
 | 
				
			||||||
# @param $3 mode (update,initialize)
 | 
					# @param $3 mode (update,initialize)
 | 
				
			||||||
 | 
					# shellcheck disable=SC2144  # Deactivate wrong error message
 | 
				
			||||||
# sudo pacman -Syyu tesseract-data-deu tesseract-data-en tesseract
 | 
					# sudo pacman -Syyu tesseract-data-deu tesseract-data-en tesseract
 | 
				
			||||||
if [ -z "$2" ]
 | 
					if [ -z "$2" ]
 | 
				
			||||||
  then
 | 
					  then
 | 
				
			||||||
@@ -33,7 +34,7 @@ else
 | 
				
			|||||||
		fi
 | 
							fi
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
for origin_file in "$ORIGIN_FOLDER"*.*; do
 | 
					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
 | 
							if [ "$(head -c 4 "$origin_file")" = "%PDF" ]; then
 | 
				
			||||||
			tmp_file="$TMP_FOLDER$(basename "$origin_file")"
 | 
								tmp_file="$TMP_FOLDER$(basename "$origin_file")"
 | 
				
			||||||
			echo "Generating $tmp_file..."
 | 
								echo "Generating $tmp_file..."
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user