From 8b504d4b066faa0940376d38892c33dd1e06eae1 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 10 Sep 2018 10:46:09 +0200 Subject: [PATCH] Windows file names can not contain a colon That would solve https://github.com/tmux-plugins/tmux-resurrect/issues/131 --- scripts/helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helpers.sh b/scripts/helpers.sh index 8c2d6a7..c5db1c0 100644 --- a/scripts/helpers.sh +++ b/scripts/helpers.sh @@ -112,7 +112,7 @@ _RESURRECT_DIR="$(resurrect_dir)" resurrect_file_path() { if [ -z "$_RESURRECT_FILE_PATH" ]; then - local timestamp="$(date +"%Y-%m-%dT%H:%M:%S")" + local timestamp="$(date +"%Y-%m-%dT%H-%M-%S")" echo "$(resurrect_dir)/${RESURRECT_FILE_PREFIX}_${timestamp}.${RESURRECT_FILE_EXTENSION}" else echo "$_RESURRECT_FILE_PATH"