aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcrypt.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypt.sh b/crypt.sh
index 661abe6..b904d76 100755
--- a/crypt.sh
+++ b/crypt.sh
@@ -461,7 +461,9 @@ _cmd_action_file() {
*) error "Unknown action" ;;
esac
- eval "$action" "$tmp_file"
+ # Set environment
+ set -- "$tmp_file" "$path" "${entries_name[$entry]}"
+ eval "$action"
[[ -f $tmp_file ]] || error "File not saved."
$GPG -d -o - "${GPG_OPTS[@]}" "$file" 2>/dev/null | diff - "$tmp_file" &>/dev/null && \