You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euxo pipefail;
|
|
|
|
|
|
|
|
dir="$(dirname "$1")";
|
|
|
|
date="$(date +%Y-%m-%d-%H-%M)";
|
|
|
|
name="$(basename "$1")";
|
|
|
|
ext="${name##latest.}";
|
|
|
|
|
|
|
|
mv "$1" "$dir/$date.$ext";
|