Commit Graph

89 Commits

Author SHA1 Message Date
tlimoncelli@stackexchange.com
9ba966445f fixup! 2015-06-02 11:12:15 -04:00
tlimoncelli@stackexchange.com
24ee6b3923 NEW: blacbox_decrypt_all_files: A wrapper around blackbox_postdeploy
which sets up the gpg-agent.
2015-06-02 11:11:27 -04:00
Mike Dillon
9a0905a139 Send non-file output from blackbox_cat to STDERR 2015-05-14 09:36:13 -07:00
John Michel
56232aafc8 Fix issue on OS X when creating a temporary file
This prevents the "mktemp: too few X's in template ‘_stacklib_’" error message from appearing when adding another admin to blackbox and allows the command to successfully execute.

Related:
rtomayko/shocco#5
http://unix.stackexchange.com/q/87638/63283
2015-05-13 14:17:38 -04:00
tlimoncelli@stackexchange.com
4a5787cad8 Add support for using the commands outside of a repo. 2015-05-01 15:44:09 +00:00
tlimoncelli@stackexchange.com
123cad5e41 MERGE 2015-04-01 11:41:06 -04:00
Luis Buriola
7bbf1a4040 use which 2015-04-01 15:56:28 +01:00
Luis Buriola
9a7365dbf1 added bin/blackbox_whatsnew
show what has changed in the last commit for a given file
(some trailing whitespaces removed as well)
2015-04-01 12:20:01 +01:00
Stas Alekseev
caf7402a03 Adding support for perforce vcs. 2015-03-23 15:07:26 -04:00
Charles Prost
cbf0139cf5 [fix] Modify files loop to improve diff display 2015-03-23 14:13:13 +01:00
Justin Hart
120f3cb42b use agent for encrypt-decrypt 2015-03-20 17:41:55 -07:00
Charles Prost
3b76c6c936 [clean] Remove useless IFS save 2015-03-20 09:40:42 +01:00
Tom Limoncelli
124f265825 Merge pull request #61 from quarkslab/fix-support_filenames-with-space
Modify several scripts to support or improve support for filenames with space
2015-03-19 14:21:29 -07:00
Charles Prost
1debbd918b [add] Add blackbox_diff script 2015-03-19 14:38:29 +01:00
Charles Prost
a7b8c32da0 [clean] Improve display for filenames with spaces 2015-03-19 11:04:45 +01:00
Charles Prost
f78d25b004 [clean] Restore IFS for 'blackbox_postdeploy' 2015-03-19 10:55:37 +01:00
Charles Prost
d8fb3e855d [fix] Support filenames with space for 'blackbox_shred_all_files' 2015-03-19 10:53:49 +01:00
Charles Prost
08b0103136 [fix] Support filenames with space for 'blackbox_update_all_files' 2015-03-19 10:52:21 +01:00
tlimoncelli@stackexchange.com
225d38ee11 BACKWARDS INCOMPATIBLE CHANGES:
* Using $BASEDIR to pass the location of the repo hasn't worked for a
  while. It has been removed.  Simply cd into the vcs repo before
  running a command.
BUG FIXES:
* .gitignore was being created in subdirectories instead of VCS root.
MINOR CHANGES
* _blackbox_common.sh: Replace change_to_root with change_to_vcs_root
* confidence_test.sh: Added more assertions and tests.
2015-03-10 21:16:27 +00:00
Jon Warbrick
b35c09609b Avoid needing blackbox scripts on $PATH
blackbox_edit and blackbox_cat use other blackbox scripts internally,
but assume that they will be found on $PATH. In testing it's useful to
be able to run these scripts by pathname without first putting them on
$PATH, and all the other scripts work just fine in these circumstances.

This edit fixes this by prefixing all references to other scripts in
blackbox_edit and blackbox_cat with ${blackbox_home}, which is conveniently
set as part of sourcing _blackbox_common.sh.
2015-03-08 19:59:55 +00:00
LE Manh Cuong
90dc874d56 Register new file now work with space in filename. 2015-03-06 11:33:39 +07:00
LE Manh Cuong
19532b82d5 Issue 50:
- Fix forgetting unquotes command substitution in function vcs_relative_path.
 - Using old test instead of new test in Makefile.
 - Fix some variables for Bob in "confidence_test.sh".
2015-03-03 09:31:09 +07:00
LE Manh Cuong
5428aed2d7 Fix many bugs for unquote variables. 2015-02-27 01:09:59 +07:00
tlimoncelli@stackexchange.com
7cfb47c09b blackbox_list_files: Only list files. No extra text. (Makes it easier to work with grep and other utilities) 2015-02-16 16:16:40 +00:00
tlimoncelli@stackexchange.com
503b26d354 blackbox_update_all_files: Clarify comment. 2015-02-16 11:09:58 -05:00
Tom Limoncelli
27df8eadf0 Merge pull request #42 from jrodriguezjr/master
List files that BlackBox is tracking
2015-02-16 10:59:28 -05:00
Bryan Roberts
63b5dc9de4 Fixed parameter expansion in _blackbox_common.sh for EDITOR 2015-02-15 11:52:34 -05:00
Bryan Roberts
d4fd6cf8ed Removed check for EDITOR from blackbox_edit 2015-02-15 11:40:00 -05:00
Bryan Roberts
e5028b0fdb Removed blackbox_view since blackbox_cat already exists 2015-02-15 02:36:11 -05:00
Bryan Roberts
9b5af9f85c Added EDITOR default to _blackbox_common.sh 2015-02-15 02:35:03 -05:00
Bryan Roberts
a95a5ef629 Fixed argument for deletion 2015-02-15 02:22:41 -05:00
Bryan Roberts
0e5fdf6fa3 Added EDITOR default to blackbox_edit; Created blackbox_view 2015-02-14 20:00:34 -05:00
Joe Rodriguez Jr
1c69a11cdf Changing default umask. 2015-02-11 13:47:00 -06:00
Joe Rodriguez Jr
28b8c413c0 Make file executable. 2015-02-11 08:40:16 -06:00
tlimoncelli@stackexchange.com
86fe5ae352 More securely quote $BB_FILES 2015-02-10 18:54:47 -05:00
Joe Rodriguez Jr
bb6e7e3451 List files that BlackBox is tracking 2015-02-10 16:08:19 -06:00
tal@whatexit.org
9f7792a629 Fix syntax error: blackbox_edit: line 12: conditional binary operator expected
Fixed #39
2015-01-26 13:45:44 -05:00
tlimoncelli@stackexchange.com
9634e2424a Fix if expression 2015-01-14 16:10:45 +00:00
Warren Gray
beefbfb912 - 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.
2015-01-13 14:42:58 -05:00
harrison
b8575b9c7b Made changes as per tlimoncelli 2014-11-12 00:56:28 -08:00
harrison
26ec9319e3 blackbox_shred_all_files now changes to root dir before running. Moved similar code from blackbox_postdeploy into _blackbox_common.sh as change_to_root function. 2014-11-06 00:28:53 -08:00
harrison
8f2e8150b5 Created blackbox_cat: Decrypt a file, cat it, shred it 2014-11-06 00:19:57 -08:00
Tom Limoncelli
b5c778a08e Be more secure in the use of "read" 2014-11-05 16:48:55 +00:00
tlimoncelli@stackexchange.com
eb96b6d1fc Use sh-compatible version of redirection. 2014-11-05 16:48:26 +00:00
tlimoncelli@stackexchange.com
d68af832b3 Fix problem that crashes pinentry 2014-11-05 16:00:49 +00:00
Tom Limoncelli
f77303ea7d Merge pull request #30 from bendra/master
adding cygwin support
2014-11-01 11:56:45 -04:00
Ben Drasin
153d34b26f adding cygwin support 2014-10-31 15:15:33 -07:00
tlimoncelli@stackexchange.com
8b9abb271d Add more comments 2014-10-30 14:14:12 +00:00
tlimoncelli@stackexchange.com
0fb0c0c5dd Fix perms 2014-10-29 14:16:47 -04:00
Harrison Page
05d8c7277c List of files to be be shredded now prints filenames 2014-10-23 16:57:04 -07:00