kg / js-astcompressor-prototype

Apache License 2.0
85 stars 12 forks source link

test-roundtrip.sh #3

Closed ghost closed 8 years ago

ghost commented 8 years ago

Re: https://github.com/WebAssembly/js-astcompressor-prototype/blob/master/test-roundtrip.sh

Lines 4 - 10:

if [ -z $1 ]; then
FILE_PREFIX=ast-encoder.js
INFILE=./ast-encoder.js ;
else
FILE_PREFIX=$2
INFILE=$1/$2 ;
fi

What happens if $1 is set but $2 is not?