summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-04-15 13:53:27 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-04-15 13:53:27 +0200
commit540dd04f05624ec7ad22c683d9bb1eae4406b3a7 (patch)
tree1dd92aa6a344fd0a776105b1d08d5ae14b762eca /scripts
parent4ae2d925fd025968286242b0b2ec3819f5609c4f (diff)
downloaddotfiles-540dd04f05624ec7ad22c683d9bb1eae4406b3a7.tar.gz
dotfiles-540dd04f05624ec7ad22c683d9bb1eae4406b3a7.tar.xz
dotfiles-540dd04f05624ec7ad22c683d9bb1eae4406b3a7.zip
Cert script: nicer backup files on import
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/certs/cert-import4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/certs/cert-import b/scripts/certs/cert-import
index 062d3d3..90e28c1 100755
--- a/scripts/certs/cert-import
+++ b/scripts/certs/cert-import
@@ -14,7 +14,7 @@ cert_import_homebundle() {
[ "$1" != "1" ] && return
echo "Adding to homebundle" >&2
mkdir -p "$(dirname ${HOMEBUNDLE})"
- cp ${HOMEBUNDLE}{,$(date '+%y%m%d%H%M%s')}
+ cp ${HOMEBUNDLE}{,.$(date '+%y%m%d%H%M%s')}
cat >>${HOMEBUNDLE}
}
@@ -22,7 +22,7 @@ cert_import_mutt() {
[ "$1" != "1" ] && return
echo "Adding to mutt" >&2
mkdir -p "$(dirname ${MUTT_CERTIFICATES})"
- cp ${MUTT_CERTIFICATES}{,$(date '+%y%m%d%H%M%s')}
+ cp ${MUTT_CERTIFICATES}{,.$(date '+%y%m%d%H%M%s')}
cat >>${MUTT_CERTIFICATES}
}