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