[fix] bad arch detection
This commit is contained in:
parent
d723f0d0dd
commit
d742fe8b3e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue