[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

@ -25,8 +25,8 @@ currentProcess=$(ps -e | grep -v grep | grep thumb_ | wc -l)
firstLevel=${hashUrl:0:2}
secondLevel=${hashUrl:2:2}
startPath=$sizeNameDir/$firstLevel/$secondLevel/
getArch = $(getconf LONG_BIT)
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