From a8b8d192ebeee0dd13a1c83d0adf5cc0b6afa96f Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 22 Aug 2020 11:47:10 +0000 Subject: [PATCH] Use a custom date format in the filename of the chapter 5 tarball The format of "date -Iseconds" generates character that are not accepted by "cp". Use only letters, digits, and dash "-". --- common/libs/func_save.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/libs/func_save.sh b/common/libs/func_save.sh index f0053a0..5d56318 100644 --- a/common/libs/func_save.sh +++ b/common/libs/func_save.sh @@ -31,7 +31,7 @@ wrt_save_work() { # ( cat << EOF @mkdir -p /tmp >>logs/\$@ 2>&1 && \\ - TARNAME=chapter5-\$\$(date -Iseconds).tar && \\ + TARNAME=chapter5-\$\$(date +%Y-%m-%d-T-%Hh%M).tar && \\ TMPFILE=\$\$(mktemp -p /tmp) && \\ TMPLOG=\$\$(mktemp -p /tmp) && \\ for F in $PRUNEPATH; do echo \$\$F >> \$\$TMPFILE; done && \\