<commit_before>
os_name=$(uname -s | tr '[:upper:]' '[:lower:]')
os_arch=$(uname -m)
latest_release='0.1.6'
file_name=gauge-$latest_release'-'$os_name.$os_arch
base_url='https://github.com/getgauge/gauge/releases/download/v'$latest_release'/'$file_name

install_linux_image() {
	wget $base_url'.zip'
	unzip $file_name'.zip' -d $file_name
	cd $file_name
	./install.sh
	cd ..
	rm -rf $file_name $file_name'.zip'
}

install_darwin_image() {
	if ! type brew > /dev/null; then
		echo 'ERROR: HomeBrew is not installed on this system.'
		echo '\nPlease download the installer from '$base_url'.pkg and install manually.'
		echo 'You will have to install the language and IDE plugins seperately.'
		exit 1
	else
		brew install gauge
	fi
}

if [ $os_name == 'darwin' ]; then
	install_darwin_image
elif [ $os_name == 'linux' ]; then
	install_linux_image
fi

for arg in "$@"; do
	gauge --install $arg
done<commit_msg>Tweak install.sh to pass arguments to build/install/install.sh<commit_after>
os_name=$(uname -s | tr '[:upper:]' '[:lower:]')
os_arch=$(uname -m)
latest_release='0.3.0'
file_name=gauge-$latest_release'-'$os_name.$os_arch
base_url='https://github.com/getgauge/gauge/releases/download/v'$latest_release'/'$file_name

install_linux_image() {
	wget $base_url'.zip'
	unzip $file_name'.zip' -d $file_name
	cd $file_name
	./install.sh $@
	cd ..
	rm -rf $file_name $file_name'.zip'
}

install_darwin_image() {
	if ! type brew > /dev/null; then
		echo 'ERROR: HomeBrew is not installed on this system.'
		echo '\nPlease download the installer from '$base_url'.pkg and install manually.'
		echo 'You will have to install the language and IDE plugins seperately.'
		exit 1
	else
		brew install gauge
	fi
}

if [ $os_name == 'darwin' ]; then
	install_darwin_image $@
elif [ $os_name == 'linux' ]; then
	install_linux_image $@
fi

for arg in "$@"; do
	gauge --install $arg
done
{'fraction_non_alphanumeric': 0.14545454545454545, 'fraction_numerical': 0.0042780748663101605, 'mean_word_length': 4.470760233918129, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6379887', 'n_tokens_mistral': 714, 'n_tokens_neox': 674, 'n_words': 183}