1
0
Fork 0
hscloud/env.sh

22 lines
489 B
Bash
Raw Normal View History

2018-11-01 21:39:01 +00:00
# source me to have all the nice things
if [ "$0" == "$BASH_SOURCE" ]; then
echo "You should be sourcing this."
exit 1
fi
2019-01-13 20:14:02 +00:00
export hscloud_root="$( cd "$(dirname "$BASH_SOURCE")"; pwd -P )"
2018-11-01 21:39:01 +00:00
2019-01-13 16:51:34 +00:00
if [ ! -f "$hscloud_root/WORKSPACE" ]; then
echo "Could not find WORKSPACE"
exit 1
fi
hscloud_path="$hscloud_root/bazel-bin/tools"
[[ ":$PATH:" != *":$hscloud_path:"* ]] && PATH="$hscloud_path:${PATH}"
2019-01-13 20:14:02 +00:00
gpg-unlock() {
echo "test" | gpg2 --sign --batch --no-tty -o /dev/null
}