mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
Change date format for filename
Some tools (like Ms Teams) do not accept some characters like : So I propose to change the date format or we could add a parameter option
This commit is contained in:
parent
32b93ef6ea
commit
6383062004
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ fi
|
||||||
|
|
||||||
ACTION=${1:-usage}
|
ACTION=${1:-usage}
|
||||||
SUBJECT=${2:-screen}
|
SUBJECT=${2:-screen}
|
||||||
FILE=${3:-$(getTargetDirectory)/$(date -Ins).png}
|
FILE=${3:-$(getTargetDirectory)/$(date +"%Y-%m-%dT%H-%M-%S-%3N").png}
|
||||||
|
|
||||||
if [ "$ACTION" != "save" ] && [ "$ACTION" != "copy" ] && [ "$ACTION" != "check" ]; then
|
if [ "$ACTION" != "save" ] && [ "$ACTION" != "copy" ] && [ "$ACTION" != "check" ]; then
|
||||||
echo "Usage:"
|
echo "Usage:"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue