-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a command for decrypting single files. It is currently just an alias for blackbox_edit_start. It is meant to be a more obvious command for decrypting a single file without editing it. Fixes #268
- Loading branch information
Tobias Dubois
authored and
Tom Limoncelli
committed
Sep 27, 2018
1 parent
dc9fa32
commit 9d30523
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
# | ||
# blackbox_decrypt_file -- Decrypt one or more blackbox files. | ||
# | ||
|
||
set -e | ||
source "${0%/*}/_blackbox_common.sh" | ||
|
||
if [ $# -eq 0 ]; then | ||
echo >&2 "Please provide at least one file to decrypt" | ||
exit 1 | ||
fi | ||
|
||
"${BLACKBOX_HOME}/blackbox_edit_start" "$@" |