Author: pierre
Date: Sat Aug 22 04:47:10 2020
New Revision: 4199
Log:
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 "-".
Modified:
jhalfs/trunk/common/libs/func_save.sh
Modified: jhalfs/trunk/common/libs/func_save.sh
==============================================================================
--- jhalfs/trunk/common/libs/func_save.sh Sat Aug 22 04:44:07 2020
(r4198)
+++ jhalfs/trunk/common/libs/func_save.sh Sat Aug 22 04:47:10 2020
(r4199)
@@ -31,7 +31,7 @@
(
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 && \\
--
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page