diff --git a/friendica-remove-invalid-photos.sh b/friendica-remove-invalid-photos.sh
index 651a5f1..5ea6704 100755
--- a/friendica-remove-invalid-photos.sh
+++ b/friendica-remove-invalid-photos.sh
@@ -57,9 +57,9 @@ loop() {
 		if [[ ! -f "${nlock}" ]]; then
 			touch "${nlock}"
 		fi
-		if [[ -f "${nlock}" && $(cat "${nlock}") -eq "" ]]; then
+		if [[ -f "${nlock}" && $(cat "${nlock}") == "" ]]; then
 			echo "${id}" >"${nlock}"
-			if [[ -f "${nlock}" && $(cat "${nlock}") -eq "${id}" ]]; then
+			if [[ -f "${nlock}" && $(cat "${nlock}") == "${id}" ]]; then
 				read -r n_tmp nt_tmp <"${nfile}"
 				if [[ -n "${n_tmp}" && -n "${nt_tmp}" ]]; then
 					n="${n_tmp}"
@@ -191,14 +191,14 @@ loop() {
 			#n is increased only if error_found = 1
 			touch "${nlock}"
 		fi
-		if [[ -f "${nlock}" && $(cat "${nlock}") -eq "" ]]; then
+		if [[ -f "${nlock}" && $(cat "${nlock}") == "" ]]; then
 			echo "${id}" >"${nlock}"
-			if [[ -f "${nlock}" && $(cat "${nlock}") -eq "${id}" ]]; then
+			if [[ -f "${nlock}" && $(cat "${nlock}") == "${id}" ]]; then
 				read -r n_tmp nt_tmp <"${nfile}"
 				if [[ -n "${n_tmp}" && -n "${nt_tmp}" ]]; then
 					n=$((n_tmp + error_found))
 					nt=$((nt_tmp + 1))
-					if [[ $(cat "${nlock}") -eq "${id}" ]]; then
+					if [[ $(cat "${nlock}") == "${id}" ]]; then
 						echo "${n} ${nt}" >"${nfile}"
 						if [[ -f "${nlock}" ]]; then
 							echo "" >"${nlock}"