Skip to content

Commit

Permalink
Good loses to Microsoft again.
Browse files Browse the repository at this point in the history
  • Loading branch information
mentalisttraceur committed May 6, 2015
1 parent 768b7f5 commit 1b75852
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions sshh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,11 @@ case $ZSH_VERSION in ?*) alias -g '${1+"$@"}="$@"'; esac
# Create the folder with user-only read+search permissions if it doesn't exist.
mkdir -m 700 -p "$logDir" || return 1

# Windows does not support colons in filenames. ISO8601 allows for time to be
# specified with or without colons, so we drop colons on Windows.
case `uname` in
*_NT*)
timestamp=`date -Is | sed s/://g`
;;
*)
timestamp=`date -Is`
esac
# ISO8601 allows for time to be specified with or without colons. But MSDOS and
# Windows ruined it for everyone (to this day exFAT, a common filesystem on USB
# drives, SD cards, etc), so support for colons in filenames is limited in the
# wild. Therefore, going with the no-colon option.
timestamp=`date -Is | sed s/://g`

logfile=`mktemp "$logDir"/"$timestamp"_"$*"_XXXXXX` || return 2

Expand Down

0 comments on commit 1b75852

Please sign in to comment.