[fix] bad arch detection

This commit is contained in:
Knah Tsaeb 2015-01-29 14:32:45 +01:00
parent d723f0d0dd
commit d742fe8b3e

View file

@ -26,7 +26,7 @@ firstLevel=${hashUrl:0:2}
secondLevel=${hashUrl:2:2}
startPath=$sizeNameDir/$firstLevel/$secondLevel/
getArch=$(getconf LONG_BIT)
echo $getArch
if [ $site == "manual" ]
then
site=$(cat "../cache/tmp/manual.txt")
@ -55,7 +55,7 @@ then
fi
start_time=`date +%s`
if [getArch == 64]
if [ $getArch -eq 64 ]
then
timeout $timeOut ./phantomjs_x64 --disk-cache=false --local-storage-path=bin/ --ignore-ssl-errors=true rasterize.js "$site" "../cache/tmp/$hashUrl.png"
else