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 "-".
This commit is contained in:
Pierre Labastie 2020-08-22 11:47:10 +00:00
parent f7c6c3c108
commit a8b8d192eb

View file

@ -31,7 +31,7 @@ wrt_save_work() { #
( (
cat << EOF cat << EOF
@mkdir -p /tmp >>logs/\$@ 2>&1 && \\ @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) && \\ TMPFILE=\$\$(mktemp -p /tmp) && \\
TMPLOG=\$\$(mktemp -p /tmp) && \\ TMPLOG=\$\$(mktemp -p /tmp) && \\
for F in $PRUNEPATH; do echo \$\$F >> \$\$TMPFILE; done && \\ for F in $PRUNEPATH; do echo \$\$F >> \$\$TMPFILE; done && \\