dot

packages and services management
Log | Files | Refs | README

commit 2040c65b16c1964391ae2c2f0c4855025e688e2e
parent 491e9604bc06afbffe815a566d01daa510238f67
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon,  8 Jan 2018 19:59:54 +0100

it was a liiiitle too compact

Diffstat:
Mbin/back | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/bin/back b/bin/back @@ -10,6 +10,7 @@ sum='b2sum -l 256' case $1 in (up) [ -e "$BACK/new" ] && exit 1 + find . -type f | sort | while read -r path do [ "$log" -nt "$path" ] && grep -F "$path" "$log" || $sum "$path" done | tee "$BACK/new" | while read -r hash path @@ -24,6 +25,7 @@ case $1 in more "$BACK/rev/$2" printf 'apply %s? [Y/n] ' "$2" 1>&2 case $(sed q) in (y|Y|'') ;; (*) exit 0 ;; esac + find . -mindepth 1 -maxdepth 1 -exec rm -r {} + while read -r hash path