Browse Source

use $me instead of basename, so it works better when it comes from stdin

master
s2 10 months ago
parent
commit
7524cf078a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      sshenc.sh

+ 2
- 2
sshenc.sh View File

@@ -41,8 +41,8 @@ shift $((OPTIND -1))
[ "$1" = "--" ] && shift

temp_dir="$(mktemp -d -t "$me.XXXXXX")"
temp_file_key="$(mktemp "$temp_dir/$(basename "$0").XXXXXX.key")"
temp_file="$(mktemp "$temp_dir/$(basename "$0").XXXXXX.cypher")"
temp_file_key="$(mktemp "$temp_dir/$me.XXXXXX.key")"
temp_file="$(mktemp "$temp_dir/$me.XXXXXX.cypher")"
trap cleanup EXIT

#encrypt

Loading…
Cancel
Save