Explorar o código

BSD head(1) does not take units

Zachary Kotlarek %!s(int64=11) %!d(string=hai) anos
pai
achega
6c9d9a10a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      findRecode

+ 1 - 1
findRecode

@@ -69,7 +69,7 @@ for i in ${FILES}; do
 
 	# We do not want to recode videos that we already encoded
 	HANDBRAKE=0
-	STRINGS="`head -c 250M "${i}" | strings -n 100`"
+	STRINGS="`head -c $(( 250 * 1024 * 1024 )) "${i}" | strings -n 100`"
 	if echo "${STRINGS}" | grep -q HandBrake; then
 		HANDBRAKE=1
 	elif echo "${STRINGS}" | grep -E '^x264 - core (79|112|120|125|129|130|142)' | grep -Eq 'crf=2[0-5]\.[0-9]'; then