Commit Graph

19 Commits (ac0f720a396211da86eb0f2ac977ab880f533707)

Author SHA1 Message Date
Josh Rabinowitz ac0f720a39
fix for #918, use OSX stat, not brew's gnu version(#920) 2 years ago
Josh Rabinowitz 50734fd364
cleanups and renames (#784)
* rename _append_* functions to _prepend_*
* improve code flow
* be more standard with shellcheck disables
2 years ago
Bryan Howard 66541e8937
remove trailing whitespace
* don't use _incorrect_usage() function as much
2 years ago
Josh Rabinowitz 95b5b320fc
Issue 516 verbose on errors (#518)
* add error info on errors listing keys
* move bash $TMPDIR initialization earlier
* show gpg output if hide encryption fails
* update changelog
* fix typos
* improve messaging when reveal and tell are done
* simplify logic, fix typo in error message
5 years ago
Josh Rabinowitz 49fa952e68
Always use OSX's mktemp on OSX. (#486) 5 years ago
Josh Rabinowitz 10fa2a7be2
Tempfile and temp directory cleanups (#473)
* Tempfile and temp directory cleanups
    Add comments about mktemp on different platforms
    Be more careful about tempfile cleanups
    Don't use find to locate files to cleanup
    Use shorter SECRETS_EXTENSION and SECRETS_DIR env settings in tests
    Set TMPDIR in tests again
    Show DESTDIR used when testing git-secret install
    Change filename passed to mktemp -t in tests
5 years ago
Josh Rabinowitz bbb4d9d3e5
Tmp cleanups (#457)
* Only show 'cleaning up temp file' messages if one
  of SECRETS_VERBOSE or SECRETS_TEST_VERBOSE is set.
* Adjust tests to reflect the change.
* Add note about suppressing 'cleaning up' msgs to CHANGELOG.md and reorder entries
* add comments showing examples of tmpfiles returned
5 years ago
Josh Rabinowitz 71f3d3a4ac
Make sure we name temp files 'git-secret-*' (#428)
* pass mktemp a template on linux
* name tempfiles git_secret, not gitsecrets
5 years ago
Josh Rabinowitz 9cccf162c6 WIP: test with expired key, add 'whoknows -l' (#287)
* test with expired key, add 'whoknows -l'

    * 'whoknows -l' shows key expiration dates
    * also added docs and tests for `whoknows -l`,
    * tests for expired keys,
    * epoch_to_date functions

* update man pages

* fix epoch-to-date conversion on OSX

* test output of 'whoknows -l'

* fix for lint/shellcheck

* fix for osx

* lint fix

* use date as found in $PATH

* disable 'set -e' as little as possible
6 years ago
Josh Rabinowitz 6251fae396 support FreeBSD (#260)
* start FreeBSD support

* permissions change

* improve command to fetch permissions.

* note we use 'shasum' and not 'sha256sum' on osx and freebsd
6 years ago
joshr 505428f837 quoting fixes 6 years ago
joshr 2a1a8cb58b fixes for lint and typo 6 years ago
joshr ffc50acd6a add os-based versions of get_octal_perms 6 years ago
ilovezfs 91d2876d23 Make checksum command operating system based 6 years ago
Carlos Hernandez d6ea1f0b5f Fix and Ignore ShellCheck (0.4.6) 2001,111 7 years ago
sobolevn a1cd887101
refactoring started, shellcheck is now supported 8 years ago
sobolevn d523d8b8a9 There was a bug with `sed` command, when trying to `remove` filename with slashes.
Now it is fixed. See `_delete_line` function.
Closes #23
8 years ago
sobolevn 3577c165ec Added `-i` flag to the `git-secret-add` command, which now auto-ignores unignored files.
Also added a test case for this feature.
Other changes:
1. refactored `Makefile` to have `.PHONY` marks
2. added install target to the `Makefile`, now one can run `make install` (with optional `$PREFIX` variable)
3. updated docs for `git-secret.7`, `git-secret-add.1`
4. refactored some commands to `shift` arguments
5. added a test case to the 'other-file-extension' situation
5. added `.github` folder to store templates

Closed #18
8 years ago
sobolevn b370149e18 fixes after makefile crash 8 years ago