mirror of
https://github.com/StackExchange/blackbox.git
synced 2025-12-16 03:23:00 +02:00
allow blackbox_edit to work with either encrypted or plaintext file name
This commit is contained in:
@@ -7,7 +7,8 @@ set -e
|
|||||||
. _blackbox_common.sh
|
. _blackbox_common.sh
|
||||||
|
|
||||||
for param in """$@""" ; do
|
for param in """$@""" ; do
|
||||||
if ! is_on_cryptlist "$param" ; then
|
unencrypted_file=$(get_unencrypted_filename "$param")
|
||||||
|
if [[! is_on_cryptlist "$param" ]] && [[! is_on_cryptlist "$unencrypted_file" ]] ; then
|
||||||
read -p "Encrypt file $param? (y/n) " ans
|
read -p "Encrypt file $param? (y/n) " ans
|
||||||
case "$ans" in
|
case "$ans" in
|
||||||
y* | Y*)
|
y* | Y*)
|
||||||
|
|||||||
Reference in New Issue
Block a user