mirror of https://github.com/vitalif/phantomjs
fix headless-build on linux
in such cases, DISABLE_HEADLESS was unset and hence the expansion -a -eq 0 resulted in a bash error: bash: [: too many arguments this is fixed now by using string-based comparison http://code.google.com/p/phantomjs/issues/detail?id=1971.5
parent
0d77f588ec
commit
9943ae541b
|
@ -150,7 +150,7 @@ patch_qt() {
|
|||
patch -p1 < ../qt48_enable_file_input_click.patch
|
||||
|
||||
# Build in lighthose mode for an x-less build
|
||||
if [ $QT_HEADLESS -eq 1 -a $DISABLE_HEADLESS -eq 0 ] ; then
|
||||
if [[ "$QT_HEADLESS" == "1" && "$DISABLE_HEADLESS" != "1" ]] ; then
|
||||
echo "Building 4.8 in qpa headless mode"
|
||||
QT_CFG+=' -qpa '
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue