summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Laska <jlaska@redhat.com>2011-05-06 08:36:59 -0400
committerJames Laska <jlaska@redhat.com>2011-05-06 08:36:59 -0400
commitc6b2a9c7fb0e5b48bc626aaa5072163b5c6c894a (patch)
tree0e52c121238f4c219bd91090fcd3081fc1d9a49b
parent8125e66216dace26ccf89b77684d155fe00bc574 (diff)
downloadscripts-c6b2a9c7fb0e5b48bc626aaa5072163b5c6c894a.tar.gz
scripts-c6b2a9c7fb0e5b48bc626aaa5072163b5c6c894a.tar.xz
scripts-c6b2a9c7fb0e5b48bc626aaa5072163b5c6c894a.zip
Improve dry-run message
-rwxr-xr-xcompress_large_files3
1 files changed, 2 insertions, 1 deletions
diff --git a/compress_large_files b/compress_large_files
index e5c8a96..5165a52 100755
--- a/compress_large_files
+++ b/compress_large_files
@@ -47,7 +47,8 @@ find "${COMPRESS_DIR}" -type f -not -name "*${COMPRESS_SUFFIX}" -size +"${MINSIZ
while read line
do
if [ ${DRYRUN} -eq 1 ]; then
- echo "Would run: ${COMPRESS_CMD} ${line}"
+ echo "\$ ${COMPRESS_CMD} ${line}"
+ echo "\$ ln -s $(basename $line).gz ${line}"
else
${COMPRESS_CMD} ${line}
# Create symlink to original file