From c3a9f9f4889de7f0e4bd0c76d877c068a5c630ce Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 12 May 2018 15:20:10 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- scripts/compress-archive.sh | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/scripts/compress-archive.sh b/scripts/compress-archive.sh index 672789b3..8ed0f736 100755 --- a/scripts/compress-archive.sh +++ b/scripts/compress-archive.sh @@ -27,16 +27,6 @@ printhelp(){ echo " -ext EXT - set file extension to compress (default: ARW)" echo " NOTE: only one -ext is supported now". echo - echo "NOTE: not yet sure if to use ntfs compression or bzip2 as default" - echo " they both have advantages and disadvantages:" - echo " ntfs compression:" - echo " + transparent to all apps -- no extra steps needed" - echo " - might complicate low level data recovery" - echo " - transfers may not be transparent -- actual size vs. disk size" - echo " bzip2/gzip/...:" - echo " + transparent to file operations and recovery" - echo " - requires manual decompression" - echo } # process args... @@ -76,14 +66,14 @@ while true ; do done # get path... -if [ $1 ] ; then - BASE_PATH="$1" +if [ "$1" ] ; then + BASE_PATH=$1 fi # do the work... -find $BASE_PATH -name \*.${EXT} -exec ${ARCH} \; +find "$BASE_PATH" -name \*.${EXT} -exec ${ARCH} \;