sitespeed.io icon indicating copy to clipboard operation
sitespeed.io copied to clipboard

Unexpected File type output

Open corbett3289 opened this issue 5 years ago • 2 comments

Running the example command from the documentation produces an error:

C:\Users\andrew.corbett>sitespeed.io https://www.sitespeed.io/

C:\Users\andrew.corbett>

This file doesn't have an app associated with it. Its a .io file format and when I open it it looks like the below code:

this. #!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
   *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac

if [ -x "$basedir/node" ]; then
 "$basedir/node"  "$basedir/node_modules/sitespeed.io/bin/sitespeed.js" "$@"
 ret=$?
else 
 node  "$basedir/node_modules/sitespeed.io/bin/sitespeed.js" "$@"
 ret=$?
fi
exit $ret

Is this a bug or a lack of documentation on how to handle file expected file outputs?

corbett3289 avatar Jun 09 '20 17:06 corbett3289

Hi @corbett3289 not sure how that works on Windows? Would be cool to make it work out of the box on Windows too, do you know how? I think most works nowadays on Windows and maybe that's the last thing to fix.

soulgalore avatar Jun 13 '20 20:06 soulgalore

same here

bonesoul avatar Oct 24 '20 00:10 bonesoul

This works if you run in bash, checkout https://github.com/sitespeedio/sitespeed.io/blob/main/.github/workflows/windowsFull.yml

soulgalore avatar Dec 29 '23 06:12 soulgalore