mirror of
https://github.com/5im-0n/sshenc.sh.git
synced 2025-08-02 19:30:05 +02:00
use $me instead of basename, so it works better when it comes from stdin
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user