We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4636b61 commit 3b51797Copy full SHA for 3b51797
file.bash
@@ -65,21 +65,19 @@ cmd_retrieve() {
65
66
cmd_edit() {
67
local path="$1"
68
- local passfile="$PREFIX/$path.gpg"
69
70
- if [[ ${path: -4} != ".b64" ]]; then
71
- path="${path}.b64"
72
- fi
73
if [[ -z $path ]]; then
74
print_usage
75
- elif [[ -z $EDITOR ]]; then
+ fi
+
+ if [[ -z $EDITOR ]]; then
76
echo "\$EDITOR not set, don't know how to open file."
77
exit 1
78
else
79
check_sneaky_paths "$path"
80
local tmpfile=$(mktemp)
81
chmod 0600 $tmpfile
82
- cmd_retrieve $path $passfile > $tmpfile
+ cmd_retrieve $path > $tmpfile
83
$EDITOR $tmpfile
84
PASS_FILE_FORCE_OVERWRITE="true" cmd_store $path $tmpfile
85
rm $tmpfile
0 commit comments