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:
parent
f7c6c3c108
commit
a8b8d192eb
1 changed files with 1 additions and 1 deletions
|
@ -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 && \\
|
||||||
|
|
Reference in a new issue