Skip to content

Commit

Permalink
Simpler log file name substitution code, functionally the same.
Browse files Browse the repository at this point in the history
  • Loading branch information
mentalisttraceur committed May 6, 2015
1 parent 2d0f484 commit 63e9699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sshh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ case `uname` in
timestamp=`date -Is`
esac

logfile=`mktemp ~/.ssh_history/${1+"$@"}_"$timestamp"_XXXXXX` || return 2
logfile=`mktemp ~/.ssh_history/"$*"_"$timestamp"_XXXXXX` || return 2
exitcode=`((ssh ${1+"$@"} 1>&3; echo $?) | tee "$logfile")` 3>&1
return $exitcode

0 comments on commit 63e9699

Please sign in to comment.