Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 20 lines (14 sloc) 0.379 kB
#!/bin/bash
die () {
filenames=($(ls -F scripts | grep '*' | sed -e 's/.sh\*//'))
scripts=$(printf '\t%s\n' "${filenames[@]}")
echo >&2 "$@\n\n\
usage: $0 script-name [args ...]\n\n\
Available scripts:\n$scripts"
exit 1
}
[ $# -lt 1 ] && die "No script specified."
script=./scripts/$1.sh
[ -x $script ] || die "Could not execute: $script"
shift 1
$script $@
Jump to Line
Something went wrong with that request. Please try again.