#!/bin/sh# install sharness.sh## Copyright (c) 2014 Juan Batiz-Benet# MIT Licensed; see the LICENSE file in this repository.## settingsversion=50229a79ba22b2f13ccd82451d86570fecbd194chash1=eeaf96630fc25ec58fb678b64ef9772d5eb92f64url=https://raw.githubusercontent.com/mlafeldt/sharness/$version/sharness.shfile=sharness.sh# download itwget -q$url-O$file.test# verify it's the right filehash2=`cat$file.test | shasum | cut-c1-40`if test"$hash1"!="$hash2";thenecho"$file verification failed"echo"$hash1 != $hash2"rm$file.testexit-1fi# ok, move it into placemv$file.test $fileexit 0