From: Siraaj Khandkar Date: Mon, 13 Jun 2022 12:35:28 +0000 (-0400) Subject: Fix extra dash in timestamp format X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=807bbf47c0978ced4802ec35ed99727914a4af0e;p=khome.git Fix extra dash in timestamp format --- 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";