From 807bbf47c0978ced4802ec35ed99727914a4af0e Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 13 Jun 2022 08:35:28 -0400 Subject: [PATCH] Fix extra dash in timestamp format --- home/bin/x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/bin/x b/home/bin/x index 59a4710..5069833 100755 --- a/home/bin/x +++ b/home/bin/x @@ -6,7 +6,7 @@ name=$(echo "$@" | sed 's/\s\+/-/g'); if [ "$name" != "" ]; then - timestamp=$(date +'%F--%H-%M--%S'); + timestamp=$(date +'%F--%H-%M-%S'); directory="$HOME/x/$timestamp--$name"; mkdir -p "$directory"; cd "$directory"; -- 2.20.1