From f21a29cd78d65300e6853338864b5c9507f0e1ca Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Mon, 29 Apr 2013 14:36:29 +0200 Subject: .functions: Avoid `rm` error message in `targz` when `gzip` is used --- .functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}\`)." } -- cgit v1.2.3