aboutsummaryrefslogtreecommitdiffstats
path: root/squashfu
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-13 19:56:27 -0500
committerDave Reisner <d@falconindy.com>2010-01-13 19:56:27 -0500
commit035364b4c252279cd2e0ef0100802e376af6fb2c (patch)
tree4c857bfefdd2592a6cdd386176042c065c4d496f /squashfu
parentceb3329b1d932e74884b0d016368728699727df0 (diff)
downloadsquashfu-035364b4c252279cd2e0ef0100802e376af6fb2c.tar.gz
More cleanup -- comments, output, and deprecated/unused code
Diffstat (limited to 'squashfu')
-rwxr-xr-xsquashfu5
1 files changed, 1 insertions, 4 deletions
diff --git a/squashfu b/squashfu
index cc42ebb..4119c50 100755
--- a/squashfu
+++ b/squashfu
@@ -102,7 +102,6 @@ create_new_bin () {
fi
# Update binventory with new bin name and timestamp
- debug "Updating $BINVENTORY, adding bin $1"
echo "${1}:$(date +%s)" >> "$BINVENTORY"
# If write to bin list fails, remove diretory and exit
@@ -202,13 +201,12 @@ get_next_available_bin () {
sweep_bins () {
# Arguments: none
# Returns: none
- count=1
info "Rotating chickens"
# Make sure bins are numbered in order, clean up if not. In other words,
# if we have 10 bins, make sure they're ordered 1 through 10.
+ count=1
ls "${BINS_DIR}" | while read bin; do
- #for bin in "${BINS_DIR}/*"; do
if [[ ! -d "${BINS_DIR}/$count" ]]; then
high_bin=$(ls "${BINS_DIR}" | sort -n | tail -1)
debug "Sweeping bin $high_bin into bin $count"
@@ -228,7 +226,6 @@ action_backup () {
fi
# Does the binventory exist? If not, prompt to make sure this is an initialization
- # FIRST_RUN=0
if [[ ! -f "$BINVENTORY" || ! -f "$SEED" ]]; then
read -p "Looks like this is your first time running SquashFu. Is this correct? (y/n) " ans
while [[ true ]]; do