aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2013-04-29 14:36:29 +0200
committerMathias Bynens <mathias@qiwi.be>2013-04-29 14:36:29 +0200
commitf21a29cd78d65300e6853338864b5c9507f0e1ca (patch)
treee37e959deba0de7ee4793d047bbdf2001ee645cf
parent71448f5fcd8bc86d86f1f770ed3397caa6d5a92e (diff)
downloaddotfiles-f21a29cd78d65300e6853338864b5c9507f0e1ca.tar.gz
dotfiles-f21a29cd78d65300e6853338864b5c9507f0e1ca.tar.bz2
dotfiles-f21a29cd78d65300e6853338864b5c9507f0e1ca.zip
.functions: Avoid `rm` error message in `targz` when `gzip` is used
-rw-r--r--.functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/.functions b/.functions
index ef25746..da26384 100644
--- a/.functions
+++ b/.functions
@@ -36,7 +36,7 @@ function targz() {
local tmpFile="${1}.tar"
tar -cvf "${tmpFile}" "${1}" &&
"${cmd}" "${tmpFile}" &&
- rm "${tmpFile}" &&
+ rm "${tmpFile}" 2> /dev/null &&
echo "${tmpFile}.gz created successfully (compressed using \`${cmd}\`)."
}