Sha256: 31ed9e78a17bd65b11f3e683d1f5c32c932e6c6f85094d7aff506cc8065d3e75
Contents?: true
Size: 598 Bytes
Versions: 4
Compression:
Stored size: 598 Bytes
Contents
#!/bin/bash base_dir=$(dirname $BASH_SOURCE) . ${base_dir}/.env.colors die() { echo set_red echo >&2 "$@" reset_colors exit 2 } finish() { echo set_white echo "$@" reset_colors exit 0 } confirm() { prompt="${1:-Are you sure? [y/N]}" set_yellow echo -n "$prompt " reset_colors if [ "${NO_INPUT:-}" == 'true' ] then # Continue if 'NO_INPUT' has been set true else # call with a prompt string or use a default read -r response case "$response" in [yY][eE][sS]|[yY]) true ;; *) false ;; esac fi }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hedgelog-0.2.1.alpha.4 | script/.bash_helpers |
hedgelog-0.2.1.alpha.3 | script/.bash_helpers |
hedgelog-0.2.1.alpha.2 | script/.bash_helpers |
hedgelog-0.1.13.alpha.1 | script/.bash_helpers |