diff options
author | Mathias Bynens <mathias@qiwi.be> | 2013-04-29 14:36:29 +0200 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2013-04-29 14:36:29 +0200 |
commit | f21a29cd78d65300e6853338864b5c9507f0e1ca (patch) | |
tree | e37e959deba0de7ee4793d047bbdf2001ee645cf /.functions | |
parent | 71448f5fcd8bc86d86f1f770ed3397caa6d5a92e (diff) | |
download | dotfiles-f21a29cd78d65300e6853338864b5c9507f0e1ca.tar.gz dotfiles-f21a29cd78d65300e6853338864b5c9507f0e1ca.tar.bz2 dotfiles-f21a29cd78d65300e6853338864b5c9507f0e1ca.zip |
.functions: Avoid `rm` error message in `targz` when `gzip` is used
Diffstat (limited to '.functions')
-rw-r--r-- | .functions | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}\`)." } |