From b0ff12c0301f7c7bf4525c669548ae639a003ce0 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 19 Mar 2015 17:37:15 -0400 Subject: [PATCH] renamed to remove dependency on current method of archiving, and cleaned some internal comments. --- .../{zip_directories.sh => squish_directories.sh} | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) rename scripts/files/{zip_directories.sh => squish_directories.sh} (75%) diff --git a/scripts/files/zip_directories.sh b/scripts/files/squish_directories.sh similarity index 75% rename from scripts/files/zip_directories.sh rename to scripts/files/squish_directories.sh index fce35b43..ce2a22a3 100644 --- a/scripts/files/zip_directories.sh +++ b/scripts/files/squish_directories.sh @@ -1,7 +1,11 @@ #!/bin/bash -# goes through the current directory (currently) and zips up any directories -# into an archive with the same name as the directory plus a time stamp. +# archives the files / directories passed on the command line into an archive +# file tagged with a datestamp, and removes the original files / directories. +# if no names are passed to the script, then it operates on *all* directories +# under the current location. + +#hmmm: may want to revisit default behavior. source $FEISTY_MEOW_SCRIPTS/core/functions.sh @@ -22,7 +26,7 @@ if [ ${#dirs[@]} -eq 0 ]; then fi # takes a directory name as an argument and sucks the directory -# into a timestamped zip file. +# into a timestamped archive file. function flattenizer() { for dirname in "$@"; do -- 2.34.1