- Fix blackbox commands so that they work when called with absolute paths.
- Fix confidence_test.sh so that it's not hardcoded to a specific dev environment path.
This commit is contained in:
@@ -9,8 +9,9 @@
|
||||
#
|
||||
|
||||
set -e
|
||||
. _blackbox_common.sh
|
||||
. _stack_lib.sh
|
||||
blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
source ${blackbox_home}/_blackbox_common.sh
|
||||
source ${blackbox_home}/_stack_lib.sh
|
||||
|
||||
fail_if_not_in_repo
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
# blackbox_cat.sh -- Decrypt a file, cat it, shred it
|
||||
#
|
||||
set -e
|
||||
. _blackbox_common.sh
|
||||
blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
source ${blackbox_home}/_blackbox_common.sh
|
||||
|
||||
for param in """$@""" ; do
|
||||
shreddable=0
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
# blackbox_edit.sh -- Decrypt a file temporarily for edition, then re-encrypts it again
|
||||
#
|
||||
set -e
|
||||
. _blackbox_common.sh
|
||||
blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
source ${blackbox_home}/_blackbox_common.sh
|
||||
|
||||
for param in """$@""" ; do
|
||||
unencrypted_file=$(get_unencrypted_filename "$param")
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
#
|
||||
|
||||
set -e
|
||||
. _blackbox_common.sh
|
||||
blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
source ${blackbox_home}/_blackbox_common.sh
|
||||
|
||||
unencrypted_file=$(get_unencrypted_filename "$1")
|
||||
encrypted_file=$(get_encrypted_filename "$1")
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
#
|
||||
|
||||
set -e
|
||||
. _blackbox_common.sh
|
||||
blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
source ${blackbox_home}/_blackbox_common.sh
|
||||
|
||||
for param in """$@""" ; do
|
||||
unencrypted_file=$(get_unencrypted_filename "$param")
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#
|
||||
|
||||
set -e
|
||||
. _blackbox_common.sh
|
||||
blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
source ${blackbox_home}/_blackbox_common.sh
|
||||
|
||||
_determine_vcs_base_and_type # Sets VCS_TYPE
|
||||
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
export PATH=/usr/bin:/bin:"$PATH"
|
||||
|
||||
set -e
|
||||
. _blackbox_common.sh
|
||||
blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
source ${blackbox_home}/_blackbox_common.sh
|
||||
|
||||
if [[ "$1" == "" ]]; then
|
||||
FILE_GROUP=""
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
# TODO(tlim): Add the unencrypted file to .hgignore
|
||||
|
||||
set -e
|
||||
. _blackbox_common.sh
|
||||
blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
source ${blackbox_home}/_blackbox_common.sh
|
||||
_determine_vcs_base_and_type
|
||||
|
||||
unencrypted_file=$(get_unencrypted_filename "$1")
|
||||
|
||||
@@ -10,8 +10,9 @@
|
||||
#
|
||||
|
||||
set -e
|
||||
. _blackbox_common.sh
|
||||
. _stack_lib.sh
|
||||
blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
source ${blackbox_home}/_blackbox_common.sh
|
||||
source ${blackbox_home}/_stack_lib.sh
|
||||
|
||||
fail_if_not_in_repo
|
||||
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
# have been decrypted for editing, you will see an empty list.
|
||||
|
||||
set -e
|
||||
. _blackbox_common.sh
|
||||
blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
source ${blackbox_home}/_blackbox_common.sh
|
||||
|
||||
change_to_root
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
#
|
||||
|
||||
set -e
|
||||
. _blackbox_common.sh
|
||||
blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
source ${blackbox_home}/_blackbox_common.sh
|
||||
|
||||
if [[ -z $GPG_AGENT_INFO ]]; then
|
||||
echo 'WARNING: You probably want to run gpg-agent as'
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export PATH="$HOME/gitwork/blackbox/bin":/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
|
||||
blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../bin
|
||||
export PATH=${blackbox_home}:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
|
||||
|
||||
. _stack_lib.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user