From e5028b0fdbc8f468520774ec4423529f7a49b512 Mon Sep 17 00:00:00 2001 From: Bryan Roberts Date: Sun, 15 Feb 2015 02:36:11 -0500 Subject: [PATCH] Removed blackbox_view since blackbox_cat already exists --- bin/blackbox_view | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 bin/blackbox_view diff --git a/bin/blackbox_view b/bin/blackbox_view deleted file mode 100755 index 1d17465..0000000 --- a/bin/blackbox_view +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -# -# blackbox_edit.sh -- Decrypt a file temporarily for edition, then re-encrypts it again -# -set -e -[ -z $EDITOR ] && EDITOR="vi" -blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) -source ${blackbox_home}/_blackbox_common.sh - -for param in """$@""" ; do - unencrypted_file=$(get_unencrypted_filename "$param") - if ! is_on_cryptlist "$param" && ! is_on_cryptlist "$unencrypted_file" ; then - read -r -p "Encrypt file $param? (y/n) " ans - case "$ans" in - y* | Y*) - blackbox_register_new_file "$param" - ;; - *) - echo 'Skipping...' - continue - ;; - esac - fi - blackbox_edit_start "$param" - $EDITOR $(get_unencrypted_filename $param) - unencrypted_file=$(get_unencrypted_filename "$param") - rm -f "$unencrypted_file" -done